Only use poll() when poll.h exists as well
authorAlexander Barton <alex@barton.de>
Fri, 25 Nov 2011 21:06:44 +0000 (22:06 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 25 Nov 2011 21:06:44 +0000 (22:06 +0100)
src/ngircd/io.c

index 7e78e49f8dd70aefa557f0bb38c98f90921894c8..f44dfbf54d9f945d6f840845ae3f0cb091744845 100644 (file)
@@ -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