diff options
| author | Alexander Barton <alex@barton.de> | 2014-03-17 00:45:07 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2014-03-17 00:45:07 +0100 |
| commit | 7b10a0e4ee64657e138dc9ef3a0d8a68c0e275f0 (patch) | |
| tree | 869e686c93a97b3f233ed2a37a8d1e66f6cf26b9 /src | |
| parent | 259c314d142abd6f9295047c116235cfdd119563 (diff) | |
| download | ngircd-7b10a0e4ee64657e138dc9ef3a0d8a68c0e275f0.tar.gz ngircd-7b10a0e4ee64657e138dc9ef3a0d8a68c0e275f0.zip | |
io.c: <sys/time.h> is only needed when using select()
Only include the <sys/time.h> header when using the select() IO API, it isn't required otherwise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <assert.h> #include <stdlib.h> #include <string.h> -#include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> @@ -119,6 +118,7 @@ static bool io_event_change_devpoll(int fd, short what); #endif #ifdef IO_USE_SELECT +#include <sys/time.h> #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) */ |