From: serassio <> Date: Mon, 25 Feb 2008 02:23:09 +0000 (+0000) Subject: Bug #2231: Compile error in squid_kerb_auth under Mac OS X 10.5.2 X-Git-Tag: SQUID_3_0_STABLE2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c08f5cdbd0c987185a228bb1158890da4793bb3;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 on 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 fa4b4836ce..08acc269ee 100755 --- a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c +++ b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c @@ -37,6 +37,9 @@ #include "spnegohelp.h" #endif +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 256 +#endif #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN HOST_NAME_MAX #endif