]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
basename requires libgen.h on FreeBSD maybe others.
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Mar 2009 11:02:36 +0000 (00:02 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Mar 2009 11:02:36 +0000 (00:02 +1300)
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

index 5f006435bdc3d3a3387c6754cd237589d98996d1..f9cec79b0b8d658450e81f78fe70f3b1335b5d62 100644 (file)
 #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 <libgen.h>
+#endif
+
 #include <iostream>
 #undef assert
 #include <sstream>