From: Ruslan Ermilov Date: Tue, 16 Jan 2018 10:52:03 +0000 (+0300) Subject: Fixed --test-build-eventport on macOS 10.12 and later. X-Git-Tag: release-1.13.9~21 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=63a4dab7b0c5e99ed273fb51ef0f6e1714d39e56;p=nginx.git 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. --- diff --git a/src/event/modules/ngx_eventport_module.c b/src/event/modules/ngx_eventport_module.c index e723f9216..01cfc97ea 100644 --- 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 */