package/libxslt: fix static build
[buildroot-gz.git] / package / squid / 0002-missing-include-time_h.patch
blob18b3ab3b555ffdb03c8fc85edf5e73c604043772
1 ipc/Kid.cc: add missing include of time.h
3 Function time() comes from <time.h>, so add the necessary include.
4 This fixes compilation on some configurations, for example
5 http://autobuild.buildroot.net/results/b33/b33e1f41e50b6e7ac3e30806b9a617d451bc27b4/
7 Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
8 Upstream-status: submitted (http://bugs.squid-cache.org/show_bug.cgi?id=3967)
10 ---
11 src/ipc/Kid.cc | 4 ++++
12 1 files changed, 4 insertions(+), 0 deletions(-)
15 diff --git a/src/ipc/Kid.cc b/src/ipc/Kid.cc
16 --- a/src/ipc/Kid.cc
17 +++ b/src/ipc/Kid.cc
18 @@ -11,6 +11,10 @@
19 #include <sys/wait.h>
20 #endif
22 +#if HAVE_TIME_H
23 +#include <time.h>
24 +#endif
26 int TheProcessKind = pkOther;
28 Kid::Kid():