summaryrefslogtreecommitdiff
path: root/lib/unistd.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-24 16:39:10 +0100
committerBruno Haible <bruno@clisp.org>2010-12-24 16:39:10 +0100
commitbce5ad8b3398b2b5958267e79c342e0b20c8f3bb (patch)
tree0f55e6863536df724c7d40fb9b083236dc16d97a /lib/unistd.in.h
parentedb19e7ea4f5977fc53c8e9ec81caed2c0a78348 (diff)
downloadgnulib-bce5ad8b3398b2b5958267e79c342e0b20c8f3bb.tar.gz
gethostname: Ensure declaration on NonStop Kernel.
* lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems. Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
Diffstat (limited to 'lib/unistd.in.h')
-rw-r--r--lib/unistd.in.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 1dd06bfa61..6fe77230ef 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -88,9 +88,11 @@
# include <io.h>
#endif
-/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>. */
+/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.
+ NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>. */
/* But avoid namespace pollution on glibc systems. */
-#if @GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__) \
+#if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \
+ || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \
&& !defined __GLIBC__
# include <netdb.h>
#endif