]> 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:15:06 +0000 (21:15 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 Nov 2013 04:15:06 +0000 (21:15 -0700)
Function time() comes from <time.h>, so add the necessary #include.

src/ipc/Kid.cc

index 5f87f9986aba2566f5fb785464fbbd92a4361b14..6b3f79ace9fc9e94641151467da49c6cdb9bf0c9 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