mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
evutil_time: include <unistd.h> when there is only sleep()/usleep()
This commit is contained in:
parent
1cbf26f67a
commit
3e75194cb5
@ -51,6 +51,13 @@
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
|
||||
/** evutil_usleep_() */
|
||||
#if defined(_WIN32)
|
||||
#elif defined(EVENT__HAVE_NANOSLEEP)
|
||||
#elif defined(EVENT__HAVE_USLEEP)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "event2/util.h"
|
||||
#include "util-internal.h"
|
||||
#include "log-internal.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user