瀏覽代碼

Add long hostname support for HP-UX

David Boreham 21 年之前
父節點
當前提交
f64e827b9c
共有 1 個文件被更改,包括 7 次插入0 次删除
  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()
 {