mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-10 01:40:26 +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_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)
|
|||||||
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)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
KS_DECLARE(void) ks_time_init(void)
|
||||||
|
{
|
||||||
|
#ifdef _WINDOWS_
|
||||||
|
win32_init_timers();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/* For Emacs:
|
/* For Emacs:
|
||||||
* Local Variables:
|
* Local Variables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user