Include time.h since time_t is used. Status: not upstream, seems to be fixed in newer CSocket versions in a different way but it hasn't been updated/bundled in znc yet. Signed-off-by: Gustavo Zacarias diff -Nura znc-1.6.1.orig/src/Csocket.cpp znc-1.6.1.cs/src/Csocket.cpp --- znc-1.6.1.orig/src/Csocket.cpp 2015-08-06 10:14:45.256246307 -0300 +++ znc-1.6.1.cs/src/Csocket.cpp 2015-08-06 10:27:25.380446888 -0300 @@ -54,6 +54,8 @@ #include #endif /* HAVE_ICU */ +#include + #include #define CS_SRANDBUFFER 128