mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
Events: fixed test building with devpoll and eventport on Linux.
Avoid POLLREMOVE and itimerspec redefinition.
This commit is contained in:
parent
26f669f109
commit
1a5922008e
@ -14,7 +14,9 @@
|
||||
|
||||
/* Solaris declarations */
|
||||
|
||||
#ifndef POLLREMOVE
|
||||
#define POLLREMOVE 0x0800
|
||||
#endif
|
||||
#define DP_POLL 0xD001
|
||||
#define DP_ISPOLLED 0xD002
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user