]> granicus.if.org Git - libevent/commitdiff
evutil_time: include <unistd.h> when there is only sleep()/usleep()
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 6 Dec 2016 08:58:16 +0000 (11:58 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 6 Dec 2016 09:54:05 +0000 (12:54 +0300)
evutil_time.c

index 8f53c66b68c0e403fd8f4d53cb73117dd75d03bb..32da2d6e8bfd5e2a3905f8cb8d87268a907ec7c4 100644 (file)
 #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"