mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-01 14:23:42 +00:00
FS-10167: Fix to make everything work right with linux again
This commit is contained in:
parent
b41a847b9d
commit
88660290d2
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user