From f022b2f99b4fe5f30d0c6194a35faa59d574904e Mon Sep 17 00:00:00 2001 From: serassio <> Date: Mon, 25 Feb 2008 02:20:47 +0000 Subject: [PATCH] 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). --- helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2