aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-22 14:52:54 +0000
committerYang Tse <yangsita@gmail.com>2008-01-22 14:52:54 +0000
commitbdb2beb8e4b2f8a2f2ffb47e43046893498ee62d (patch)
tree03e4ed54d3d613b156b16d1b8a85eb9202789e5c /src/main.c
parent727e23322f98f961891c4cba2b1a438237b2c32e (diff)
check availability of poll.h header at configuration time, and include
it when sys/poll.h is unavailable
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 406740d98..4027ea42f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,6 +85,8 @@
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
+#elif defined(HAVE_POLL_H)
+#include <poll.h>
#endif
#ifdef HAVE_LOCALE_H