changeset 7189:cbf59d483c9c

Fixed --test-build-eventport on macOS 10.12 and later. In macOS 10.12, CLOCK_REALTIME and clockid_t were added, but not timer_t.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 16 Jan 2018 13:52:03 +0300
parents 93abb5a855d6
children e11a0679d349
files src/event/modules/ngx_eventport_module.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/modules/ngx_eventport_module.c
+++ b/src/event/modules/ngx_eventport_module.c
@@ -19,6 +19,8 @@
 #define CLOCK_REALTIME          0
 typedef int     clockid_t;
 typedef void *  timer_t;
+#elif (NGX_DARWIN)
+typedef void *  timer_t;
 #endif
 
 /* Solaris declarations */