Events: fixed test building with devpoll and eventport on Linux.

Avoid POLLREMOVE and itimerspec redefinition.
This commit is contained in:
Sergey Kandaurov 2016-03-21 12:36:36 +03:00
parent 26f669f109
commit 1a5922008e
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@
/* Solaris declarations */ /* Solaris declarations */
#ifndef POLLREMOVE
#define POLLREMOVE 0x0800 #define POLLREMOVE 0x0800
#endif
#define DP_POLL 0xD001 #define DP_POLL 0xD001
#define DP_ISPOLLED 0xD002 #define DP_ISPOLLED 0xD002

View File

@ -49,7 +49,7 @@ typedef struct port_notify {
void *portnfy_user; /* user defined */ void *portnfy_user; /* user defined */
} port_notify_t; } port_notify_t;
#if (__FreeBSD_version < 700005) #if (__FreeBSD__) && (__FreeBSD_version < 700005)
typedef struct itimerspec { /* definition per POSIX.4 */ typedef struct itimerspec { /* definition per POSIX.4 */
struct timespec it_interval;/* timer period */ struct timespec it_interval;/* timer period */