projects
/
platform
/
upstream
/
strace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b64034
)
Include <sys/poll.h> only if there is no <poll.h>
author
Dmitry V. Levin
<ldv@altlinux.org>
Wed, 6 Nov 2013 01:17:05 +0000
(
01:17
+0000)
committer
Dmitry 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
patch
|
blob
|
history
stream.c
patch
|
blob
|
history
diff --git
a/pathtrace.c
b/pathtrace.c
index f76f3ced6251c85cc460bbf3c757379be68568cb..03f6681fff3d2ab93634e7deab06b6ac94f051c6 100644
(file)
--- a/
pathtrace.c
+++ b/
pathtrace.c
@@
-28,10
+28,9
@@
#include "defs.h"
#include <sys/param.h>
-#if
def
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
diff --git
a/stream.c
b/stream.c
index 18a8ca94c7959e697ce159b604da6c43eb49d88d..f0c2af48876186f481721bd80997bff38cd9d00d 100644
(file)
--- a/
stream.c
+++ b/
stream.c
@@
-27,10
+27,9
@@
*/
#include "defs.h"
-#if
def
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