提交 88660290 authored 作者: Shane Bryldt's avatar Shane Bryldt

FS-10167: Fix to make everything work right with linux again

上级 b41a847b
...@@ -137,6 +137,7 @@ KS_DECLARE(void) ks_random_string(char *buf, uint16_t len, char *set); ...@@ -137,6 +137,7 @@ KS_DECLARE(void) ks_random_string(char *buf, uint16_t len, char *set);
#include "ks_rng.h" #include "ks_rng.h"
#include "ks_acl.h" #include "ks_acl.h"
#include "ks_base64.h" #include "ks_base64.h"
#include "ks_time.h"
KS_END_EXTERN_C KS_END_EXTERN_C
......
...@@ -88,11 +88,6 @@ static inline void win32_init_timers(void) ...@@ -88,11 +88,6 @@ static inline void win32_init_timers(void)
LeaveCriticalSection(&timer_section); LeaveCriticalSection(&timer_section);
} }
KS_DECLARE(void) ks_time_init(void)
{
win32_init_timers();
}
KS_DECLARE(ks_time_t) ks_time_now(void) KS_DECLARE(ks_time_t) ks_time_now(void)
{ {
ks_time_t now; ks_time_t now;
...@@ -253,6 +248,12 @@ KS_DECLARE(void) ks_sleep(ks_time_t microsec) ...@@ -253,6 +248,12 @@ KS_DECLARE(void) ks_sleep(ks_time_t microsec)
#endif #endif
KS_DECLARE(void) ks_time_init(void)
{
#ifdef _WINDOWS_
win32_init_timers();
#endif
}
/* For Emacs: /* For Emacs:
* Local Variables: * Local Variables:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论