From: Alexander Barton Date: Fri, 25 Nov 2011 21:06:44 +0000 (+0100) Subject: Only use poll() when poll.h exists as well X-Git-Tag: rel-19-rc1~116 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=8e193df973bef0765754ccf4d6cb3ea21c226955 Only use poll() when poll.h exists as well --- 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