From ee1a03d38247c1c45d38f84fa029aee551ec9ece Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 2 Mar 2009 00:02:36 +1300 Subject: [PATCH] basename requires libgen.h on FreeBSD maybe others. Its safe to include with HAVE_* wrappers here despite not including config.h first, because we are only using it in a #define. The .cc which use those defines are expected to include config.h before all other headers (including Debug.h) for their requirements. --- src/Debug.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Debug.h b/src/Debug.h index 5f006435bd..f9cec79b0b 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -34,6 +34,12 @@ #ifndef SQUID_DEBUG_H #define SQUID_DEBUG_H +/* NP: done without pre-requisite config.h */ +/* because we only define with it here. */ +#if HAVE_LIBGEN_H +#include +#endif + #include #undef assert #include -- 2.47.2