]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/io.c
io.c: <sys/time.h> is only needed when using select()
[ngircd-alex.git] / src / ngircd / io.c
index cce6ef536557e7376bf93a1a8df9f912218ae0e4..791190fed8fee134eca794d5b75e1876f6b9d7ba 100644 (file)
@@ -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) */
@@ -631,7 +631,7 @@ io_library_init_kqueue(unsigned int eventsize)
        io_masterfd = kqueue();
 
        Log(LOG_INFO,
-           "IO subsystem: kqueue (initial maxfd %u, masterfd %d)",
+           "IO subsystem: kqueue (initial maxfd %u, masterfd %d).",
            eventsize, io_masterfd);
        if (io_masterfd >= 0)
                library_initialized = true;