From: Dmitry V. Levin Date: Thu, 30 Jul 2015 16:23:58 +0000 (+0000) Subject: Assume that is available X-Git-Tag: v4.11~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80d5e012a1ed6421ea00d4d8c830667889a059bc;p=strace Assume that is available * configure.ac (AC_CHECK_HEADERS): Remove poll.h and sys/poll.h. * pathtrace.c: Include unconditionally. * stream.c: Likewise. [HAVE_SYS_POLL_H]: Compile unconditionally. [!HAVE_SYS_POLL_H]: Remove. --- diff --git a/configure.ac b/configure.ac index bdaca466..aa0703c1 100644 --- a/configure.ac +++ b/configure.ac @@ -264,14 +264,12 @@ AC_CHECK_HEADERS(m4_normalize([ linux/utsname.h mqueue.h netinet/sctp.h - poll.h scsi/sg.h stropts.h sys/conf.h sys/epoll.h sys/fanotify.h sys/ioctl.h - sys/poll.h sys/reg.h sys/vfs.h sys/xattr.h diff --git a/pathtrace.c b/pathtrace.c index 3946782b..f6f0dc11 100644 --- a/pathtrace.c +++ b/pathtrace.c @@ -28,11 +28,7 @@ #include "defs.h" #include -#if defined HAVE_POLL_H -# include -#elif defined HAVE_SYS_POLL_H -# include -#endif +#include #include "syscall.h" diff --git a/stream.c b/stream.c index c21c73d0..479781ba 100644 --- a/stream.c +++ b/stream.c @@ -27,11 +27,7 @@ */ #include "defs.h" -#if defined HAVE_POLL_H -# include -#elif defined HAVE_SYS_POLL_H -# include -#endif +#include #ifdef HAVE_SYS_CONF_H # include #endif @@ -156,8 +152,6 @@ SYS_FUNC(getpmsg) #endif /* STREAMS syscalls support */ -#ifdef HAVE_SYS_POLL_H - #include "xlat/pollflags.h" static int @@ -319,10 +313,3 @@ SYS_FUNC(ppoll) } return rc; } - -#else /* !HAVE_SYS_POLL_H */ -SYS_FUNC(poll) -{ - return 0; -} -#endif