diff src/event/modules/ngx_eventport_module.c @ 6447:d17f0584006f

Events: fixed test building with devpoll and eventport on Linux. Avoid POLLREMOVE and itimerspec redefinition.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 21 Mar 2016 12:36:36 +0300
parents 4652f8f26b12
children 7d6970ba5209
line wrap: on
line diff
--- a/src/event/modules/ngx_eventport_module.c
+++ b/src/event/modules/ngx_eventport_module.c
@@ -49,7 +49,7 @@ typedef struct  port_notify {
     void       *portnfy_user;   /* user defined */
 } port_notify_t;
 
-#if (__FreeBSD_version < 700005)
+#if (__FreeBSD__) && (__FreeBSD_version < 700005)
 
 typedef struct itimerspec {     /* definition per POSIX.4 */
     struct timespec it_interval;/* timer period */