]> git.kaiwu.me - nginx.git/commitdiff
Fixed --test-build-eventport on macOS 10.12 and later.
authorRuslan Ermilov <ru@nginx.com>
Tue, 16 Jan 2018 10:52:03 +0000 (13:52 +0300)
committerRuslan Ermilov <ru@nginx.com>
Tue, 16 Jan 2018 10:52:03 +0000 (13:52 +0300)
In macOS 10.12, CLOCK_REALTIME and clockid_t were added, but not timer_t.

src/event/modules/ngx_eventport_module.c

index e723f921624028fef603fde5a4db53c557c1e77f..01cfc97ea41d63a1288f1ebe0b96c2f0814a1bdc 100644 (file)
@@ -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 */