comparison src/event/modules/ngx_eventport_module.c @ 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 fbdaad9b0e7b
children 3c51385e5da1
comparison
equal deleted inserted replaced
7188:93abb5a855d6 7189:cbf59d483c9c
16 #define uint_t u_int 16 #define uint_t u_int
17 17
18 #ifndef CLOCK_REALTIME 18 #ifndef CLOCK_REALTIME
19 #define CLOCK_REALTIME 0 19 #define CLOCK_REALTIME 0
20 typedef int clockid_t; 20 typedef int clockid_t;
21 typedef void * timer_t;
22 #elif (NGX_DARWIN)
21 typedef void * timer_t; 23 typedef void * timer_t;
22 #endif 24 #endif
23 25
24 /* Solaris declarations */ 26 /* Solaris declarations */
25 27