summaryrefslogtreecommitdiff
path: root/evutil_time.c
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2016-12-06 11:58:16 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2016-12-06 12:54:05 +0300
commit3e75194cb568613e2b37988053b20b5178ff65a2 (patch)
tree7e77b07288cf73bf6b3024dc7a8740142be63202 /evutil_time.c
parent1cbf26f67ac8eab97c97c54851526ff612da0c37 (diff)
downloadlibevent-3e75194cb568613e2b37988053b20b5178ff65a2.tar.gz
evutil_time: include <unistd.h> when there is only sleep()/usleep()
Diffstat (limited to 'evutil_time.c')
-rw-r--r--evutil_time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/evutil_time.c b/evutil_time.c
index 8f53c66b..32da2d6e 100644
--- a/evutil_time.c
+++ b/evutil_time.c
@@ -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"