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.
#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>