commit | d64a7e4755abe2d073676741f38328aa0b83db9f | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Wed Nov 06 01:17:05 2013 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Mon Nov 11 15:27:01 2013 +0000 |
tree | 4e2941209d79b180062db8eacad2e87efdfb8f97 | |
parent | 2b640347869c4d6a0aa9b51c5812a80f84fc486a [diff] [blame] |
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.
diff --git a/stream.c b/stream.c index 18a8ca9..f0c2af4 100644 --- a/stream.c +++ b/stream.c
@@ -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