]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3698: Add missing include to xstrerror.h
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Dec 2012 21:25:28 +0000 (14:25 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Dec 2012 21:25:28 +0000 (14:25 -0700)
later versions were fixed as poart of trunk rev.12290 which added a lot
of errno.h includes. However all that is needed is this one to pull it
in through libcompat headers which cover all .cc.

xstrerror.h is the right place to add the include because it is the place
presenting a macro inlining the dependency.

compat/xstrerror.h

index 69fa439e88f8f2ea62029274582c9fa850e7587d..095a1202f63170295826068ffecbcb656a932496 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _SQUID_COMPAT_XSTRERROR_H
 #define _SQUID_COMPAT_XSTRERROR_H
 
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
 /** strerror() wrapper replacement.
  *
  * Provides the guarantee that a string is always returned.