Events: fixed test building with eventport on OS X.

Broken in d17f0584006f (1.9.13).
This commit is contained in:
Ruslan Ermilov 2016-03-30 11:57:28 +03:00
parent 7ad57da598
commit dd5628fcad

View File

@ -49,7 +49,7 @@ typedef struct port_notify {
void *portnfy_user; /* user defined */
} port_notify_t;
#if (__FreeBSD__) && (__FreeBSD_version < 700005)
#if (__FreeBSD__ && __FreeBSD_version < 700005) || (NGX_DARWIN)
typedef struct itimerspec { /* definition per POSIX.4 */
struct timespec it_interval;/* timer period */