diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-09 21:46:17 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-09 21:46:17 +0000 |
commit | 6d44012cb5fdaceed6f00d9526e5906afbcfc8c5 (patch) | |
tree | 903301f3e94c1683f2c115c2dce47f9f69ff065c /tests/epoll_ctl.c | |
parent | 071b9274f4c867c213a92cae587d0ea541618389 (diff) | |
download | strace-6d44012cb5fdaceed6f00d9526e5906afbcfc8c5.tar.gz |
Assume that sys/epoll.h exists
This header file was added in glibc-2.3.2,
so it's safe to assume its availability.
* configure.ac (AC_CHECK_HEADERS): Remove sys/epoll.h.
* epoll.c: Include <sys/epoll.h> unconditionally.
Compile [HAVE_SYS_EPOLL_H] code unconditionally.
* tests/epoll_ctl.c: Do not check for HAVE_SYS_EPOLL_H.
* tests/epoll_wait.c: Likewise.
Diffstat (limited to 'tests/epoll_ctl.c')
-rw-r--r-- | tests/epoll_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/epoll_ctl.c b/tests/epoll_ctl.c index ffb12ac53..ffabca173 100644 --- a/tests/epoll_ctl.c +++ b/tests/epoll_ctl.c @@ -1,7 +1,7 @@ #include "tests.h" #include <sys/syscall.h> -#if defined __NR_epoll_ctl && defined HAVE_SYS_EPOLL_H +#ifdef __NR_epoll_ctl # include <inttypes.h> # include <stdio.h> @@ -33,6 +33,6 @@ main(void) #else -SKIP_MAIN_UNDEFINED("__NR_epoll_ctl && HAVE_SYS_EPOLL_H") +SKIP_MAIN_UNDEFINED("__NR_epoll_ctl") #endif |