From: serassio <> Date: Mon, 25 Feb 2008 02:20:47 +0000 (+0000) Subject: Bug #2231: Compile error in squid_kerb_auth under Mac OS X 10.5.2 X-Git-Tag: BASIC_TPROXY4~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f022b2f99b4fe5f30d0c6194a35faa59d574904e;p=thirdparty%2Fsquid.git Bug #2231: Compile error in squid_kerb_auth under Mac OS X 10.5.2 HOST_NAME_MAX is not declared Mac OS X (and maybe others). --- diff --git a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c index 999837eaac..bc2c3f5f54 100755 --- a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c +++ b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c @@ -40,6 +40,9 @@ #include "spnegohelp.h" #endif +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 256 +#endif #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN HOST_NAME_MAX #endif