about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-11-25 22:06:44 +0100
committerAlexander Barton <alex@barton.de>2011-11-25 22:06:44 +0100
commit8e193df973bef0765754ccf4d6cb3ea21c226955 (patch)
tree66e71cc07f9edebb5696150741e9492fe39e7f13
parent9d348d00d9eda2aede0ea9052bcc34cd070d3b5a (diff)
downloadngircd-8e193df973bef0765754ccf4d6cb3ea21c226955.tar.gz
ngircd-8e193df973bef0765754ccf4d6cb3ea21c226955.zip
Only use poll() when poll.h exists as well
-rw-r--r--src/ngircd/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/io.c b/src/ngircd/io.c
index 7e78e49f..f44dfbf5 100644
--- a/src/ngircd/io.c
+++ b/src/ngircd/io.c
@@ -54,7 +54,7 @@ typedef struct {
 #    ifdef HAVE_SYS_DEVPOLL_H
 #      define IO_USE_DEVPOLL	1
 #    else
-#      ifdef HAVE_POLL
+#      if defined(HAVE_POLL) && defined(HAVE_POLL_H)
 #        define IO_USE_POLL	1
 #      else
 #        ifdef HAVE_SELECT