18b3ab3b555ffdb03c8fc85edf5e73c604043772
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / squid / 0002-missing-include-time_h.patch
1 ipc/Kid.cc: add missing include of time.h
2
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/
6
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)
9
10 ---
11  src/ipc/Kid.cc |  4 ++++
12  1 files changed, 4 insertions(+), 0 deletions(-)
13
14
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
21  
22 +#if HAVE_TIME_H
23 +#include <time.h>
24 +#endif
25 +
26  int TheProcessKind = pkOther;
27  
28  Kid::Kid():