diff --git a/utils.c b/utils.c index 57adb7e..d32bcd7 100644 --- a/utils.c +++ b/utils.c @@ -212,6 +212,10 @@ int posix_fadvise(int fd, off_t offset, off_t len, int advice) } } +#endif /* Apple Macintosh */ + +#if (__APPLE__ && __MACH__) || defined(__OpenBSD__) + #include /* For usleep(). */ void msleep(double wait_ms) @@ -219,7 +223,7 @@ void msleep(double wait_ms) assert(!usleep(wait_ms * 1000)); } -#else +#else /* Apple Macintosh / OpenBSD */ #include /* For clock_gettime() and clock_nanosleep(). */ @@ -254,4 +258,4 @@ void msleep(double wait_ms) assert(ret == 0); } -#endif +#endif /* Apple Macintosh / OpenBSD */