diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-06 01:17:05 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-11 15:27:01 +0000 |
commit | d64a7e4755abe2d073676741f38328aa0b83db9f (patch) | |
tree | 4e2941209d79b180062db8eacad2e87efdfb8f97 /stream.c | |
parent | 2b640347869c4d6a0aa9b51c5812a80f84fc486a (diff) | |
download | strace-d64a7e4755abe2d073676741f38328aa0b83db9f.tar.gz |
Include <sys/poll.h> only if there is no <poll.h>
* pathtrace.c: Do not include <sys/poll.h> if <poll.h> is available.
* stream.c: Likewise.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -27,10 +27,9 @@ */ #include "defs.h" -#ifdef HAVE_POLL_H +#if defined HAVE_POLL_H # include <poll.h> -#endif -#ifdef HAVE_SYS_POLL_H +#elif defined HAVE_SYS_POLL_H # include <sys/poll.h> #endif #ifdef HAVE_SYS_CONF_H |