# HG changeset patch # User Ruslan Ermilov # Date 1459328248 -10800 # Node ID 7d6970ba5209a8d69dfecc63257856f1ebcc2855 # Parent 2cd0195202109026eefe547fe1eb4eda0c1ace2a Events: fixed test building with eventport on OS X. Broken in d17f0584006f (1.9.13). diff --git a/src/event/modules/ngx_eventport_module.c b/src/event/modules/ngx_eventport_module.c --- a/src/event/modules/ngx_eventport_module.c +++ b/src/event/modules/ngx_eventport_module.c @@ -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 */