From: Amos Jeffries Date: Sun, 2 Dec 2012 21:25:28 +0000 (-0700) Subject: Bug 3698: Add missing include to xstrerror.h X-Git-Tag: SQUID_3_2_5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3583ac425519d39ba1ac1d18190ab1e51e3048;p=thirdparty%2Fsquid.git Bug 3698: Add missing include to xstrerror.h 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. --- diff --git a/compat/xstrerror.h b/compat/xstrerror.h index 69fa439e88..095a1202f6 100644 --- a/compat/xstrerror.h +++ b/compat/xstrerror.h @@ -1,6 +1,10 @@ #ifndef _SQUID_COMPAT_XSTRERROR_H #define _SQUID_COMPAT_XSTRERROR_H +#if HAVE_ERRNO_H +#include +#endif + /** strerror() wrapper replacement. * * Provides the guarantee that a string is always returned.