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

This commit is contained in:
Shane Bryldt 2017-03-29 18:28:36 -05:00
parent b41a847b9d
commit 88660290d2
2 changed files with 27 additions and 25 deletions

View File

@ -137,6 +137,7 @@ KS_DECLARE(void) ks_random_string(char *buf, uint16_t len, char *set);
#include "ks_rng.h"
#include "ks_acl.h"
#include "ks_base64.h"
#include "ks_time.h"
KS_END_EXTERN_C

View File

@ -88,11 +88,6 @@ static inline void win32_init_timers(void)
LeaveCriticalSection(&timer_section);
}
KS_DECLARE(void) ks_time_init(void)
{
win32_init_timers();
}
KS_DECLARE(ks_time_t) ks_time_now(void)
{
ks_time_t now;
@ -253,6 +248,12 @@ KS_DECLARE(void) ks_sleep(ks_time_t microsec)
#endif
KS_DECLARE(void) ks_time_init(void)
{
#ifdef _WINDOWS_
win32_init_timers();
#endif
}
/* For Emacs:
* Local Variables: