From 2a3583ac425519d39ba1ac1d18190ab1e51e3048 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 2 Dec 2012 14:25:28 -0700 Subject: [PATCH] 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. --- compat/xstrerror.h | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.47.2