[nginx] Events: fixed test building with eventport on OS X.
Ruslan Ermilov
ru at nginx.com
Wed Mar 30 08:58:09 UTC 2016
details: http://hg.nginx.org/nginx/rev/7d6970ba5209
branches:
changeset: 6475:7d6970ba5209
user: Ruslan Ermilov <ru at nginx.com>
date: Wed Mar 30 11:57:28 2016 +0300
description:
Events: fixed test building with eventport on OS X.
Broken in d17f0584006f (1.9.13).
diffstat:
src/event/modules/ngx_eventport_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2cd019520210 -r 7d6970ba5209 src/event/modules/ngx_eventport_module.c
--- a/src/event/modules/ngx_eventport_module.c Wed Mar 30 11:52:16 2016 +0300
+++ b/src/event/modules/ngx_eventport_module.c Wed Mar 30 11:57:28 2016 +0300
@@ -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 */
More information about the nginx-devel
mailing list