Mercurial > hg > nginx-quic
comparison 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 |
comparison
equal
deleted
inserted
replaced
6446:0ff7eff48c7e | 6447:d17f0584006f |
---|---|
47 typedef struct port_notify { | 47 typedef struct port_notify { |
48 int portnfy_port; /* bind request(s) to port */ | 48 int portnfy_port; /* bind request(s) to port */ |
49 void *portnfy_user; /* user defined */ | 49 void *portnfy_user; /* user defined */ |
50 } port_notify_t; | 50 } port_notify_t; |
51 | 51 |
52 #if (__FreeBSD_version < 700005) | 52 #if (__FreeBSD__) && (__FreeBSD_version < 700005) |
53 | 53 |
54 typedef struct itimerspec { /* definition per POSIX.4 */ | 54 typedef struct itimerspec { /* definition per POSIX.4 */ |
55 struct timespec it_interval;/* timer period */ | 55 struct timespec it_interval;/* timer period */ |
56 struct timespec it_value; /* timer expiration */ | 56 struct timespec it_value; /* timer expiration */ |
57 } itimerspec_t; | 57 } itimerspec_t; |