Include <sys/poll.h> only if there is no <poll.h>
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 6 Nov 2013 01:17:05 +0000 (01:17 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Nov 2013 15:27:01 +0000 (15:27 +0000)
* pathtrace.c: Do not include <sys/poll.h> if <poll.h> is available.
* stream.c: Likewise.

pathtrace.c
stream.c

index f76f3ced6251c85cc460bbf3c757379be68568cb..03f6681fff3d2ab93634e7deab06b6ac94f051c6 100644 (file)
 
 #include "defs.h"
 #include <sys/param.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
 
index 18a8ca94c7959e697ce159b604da6c43eb49d88d..f0c2af48876186f481721bd80997bff38cd9d00d 100644 (file)
--- a/stream.c
+++ b/stream.c
  */
 
 #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