]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3967: ipc/Kid.cc compilation failure: 'time' was not declared in this scope
authorThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Fri, 29 Nov 2013 04:19:00 +0000 (21:19 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 Nov 2013 04:19:00 +0000 (21:19 -0700)
Function time() comes from <time.h>, so add the necessary #include.

src/ipc/Kid.cc

index ee54cfb114060537ed95e411f44c37e03360e13e..79c38e3095167f3739cd614864c097df158144c7 100644 (file)
@@ -7,6 +7,10 @@
 #include "globals.h"
 #include "ipc/Kid.h"
 
+#if HAVE_TIME_H
+#include <time.h>
+#endif
+
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif