summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Boreham <dboreham@redhat.com>2005-02-21 21:43:08 +0000
committerDavid Boreham <dboreham@redhat.com>2005-02-21 21:43:08 +0000
commitf64e827b9c3011b07b5d78dd52466236dc77346e (patch)
tree258e45cf61ec96d890184864283ce1a9f9d5b977
parentb94533ed0efc5be790c676688a009f64b7e556dc (diff)
downloadds-f64e827b9c3011b07b5d78dd52466236dc77346e.tar.gz
ds-f64e827b9c3011b07b5d78dd52466236dc77346e.tar.xz
ds-f64e827b9c3011b07b5d78dd52466236dc77346e.zip
Add long hostname support for HP-UX
-rw-r--r--ldap/servers/slapd/localhost.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ldap/servers/slapd/localhost.c b/ldap/servers/slapd/localhost.c
index fedf8a19..ee831647 100644
--- a/ldap/servers/slapd/localhost.c
+++ b/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()
{