Ver código fonte

Add long hostname support for HP-UX

David Boreham 20 anos atrás
pai
commit
f64e827b9c
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      ldap/servers/slapd/localhost.c

+ 7 - 0
ldap/servers/slapd/localhost.c

@@ -37,6 +37,13 @@
 #define NO_DOMAINNAME 1
 #endif
 
+#if defined (__hpux)
+#if (MAXHOSTNAMELEN < 256)
+#   undef MAXHOSTNAMELEN
+#   define MAXHOSTNAMELEN 256
+#endif
+#endif
+
 static char*
 find_localhost_DNS()
 {