From: Alexander Barton Date: Sun, 16 Mar 2014 23:45:07 +0000 (+0100) Subject: io.c: is only needed when using select() X-Git-Tag: rel-22-rc1~41 X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd.git;a=commitdiff_plain;h=7b10a0e4ee64657e138dc9ef3a0d8a68c0e275f0 io.c: is only needed when using select() Only include the header when using the select() IO API, it isn't required otherwise. --- diff --git a/src/ngircd/io.c b/src/ngircd/io.c index dab30439..791190fe 100644 --- a/src/ngircd/io.c +++ b/src/ngircd/io.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -119,6 +118,7 @@ static bool io_event_change_devpoll(int fd, short what); #endif #ifdef IO_USE_SELECT +#include #include "defines.h" /* for conn.h */ #include "proc.h" /* for PROC_STAT (needed by conf.h) */ #include "conn.h" /* for CONN_ID (needed by conf.h) */