]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2231: Compile error in squid_kerb_auth under Mac OS X 10.5.2
authorserassio <>
Mon, 25 Feb 2008 02:23:09 +0000 (02:23 +0000)
committerserassio <>
Mon, 25 Feb 2008 02:23:09 +0000 (02:23 +0000)
HOST_NAME_MAX is not declared on Mac OS X (and maybe others).

helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c

index fa4b4836cea83d73a64dd5797d4cbed054c822db..08acc269ee70799a3063eead5886fed65ba634a8 100755 (executable)
@@ -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