squid: fix compilation due to missing include of time.h
PATCH 1/1 squid: fix compilation due to missing include of time.h
Fixes http://autobuild.buildroot.net/results/b33/b33e1f41e50b6e7ac3e30806b9a617d451bc27b4/
Signed-off-by Thomas De Schampheleire <[email protected]>
--- package/squid/squid-03-missing-include-time_h.patch | 28 +++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-)
package/squid/squid-03-missing-include-time_h.patch new file +28 -0
@@ -0,0 +1,28 @@ +ipc/Kid.cc: add missing include of time.h + +Function time() comes from <time.h>, so add the necessary include. +This fixes compilation on some configurations, for example +http://autobuild.buildroot.net/results/b33/b33e1f41e50b6e7ac3e30806b9a617d451bc27b4/ + +Signed-off-by: Thomas De Schampheleire <[email protected]> +Upstream-status: submitted (http://bugs.squid-cache.org/show_bug.cgi?id=3967) + +--- + src/ipc/Kid.cc | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + + +diff --git a/src/ipc/Kid.cc b/src/ipc/Kid.cc +--- a/src/ipc/Kid.cc ++++ b/src/ipc/Kid.cc +@@ -11,6 +11,10 @@ + #include <sys/wait.h> + #endif + ++#if HAVE_TIME_H ++#include <time.h> ++#endif ++ + int TheProcessKind = pkOther; + + Kid::Kid():
PATCH 1/1 squid: fix compilation due to missing include of time.h
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas De Schampheleire <[email protected]> writes:
Fixes http://autobuild.buildroot.net/results/b33/b33e1f41e50b6e7ac3e30806b9a617d451bc27b4/
Signed-off-by Thomas De Schampheleire <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard