]> 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:20:47 +0000 (02:20 +0000)
committerserassio <>
Mon, 25 Feb 2008 02:20:47 +0000 (02:20 +0000)
HOST_NAME_MAX is not declared Mac OS X (and maybe others).

helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c

index 999837eaac5c25c53e796956dd3629d41e34c5b9..bc2c3f5f54ae97f8e09f38d28cca63cf3ab5466e 100755 (executable)
@@ -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