evutil_time: include <unistd.h> when there is only sleep()/usleep()

This commit is contained in:
Azat Khuzhin 2016-12-06 11:58:16 +03:00
parent 1cbf26f67a
commit 3e75194cb5

View File

@ -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"