From: Amos Jeffries Date: Sun, 1 Mar 2009 11:02:36 +0000 (+1300) Subject: basename requires libgen.h on FreeBSD maybe others. X-Git-Tag: SQUID_3_2_0_1~1146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee1a03d38247c1c45d38f84fa029aee551ec9ece;p=thirdparty%2Fsquid.git 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. --- 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