From: Bruno Haible <bruno@clisp.org> Date: Fri, 24 Dec 2010 15:39:10 +0000 (+0100) Subject: gethostname: Ensure declaration on NonStop Kernel. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce5ad8b3398b2b5958267e79c342e0b20c8f3bb;p=pspp 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>. --- diff --git a/ChangeLog b/ChangeLog index ed375b6a49..3abaad0825 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-12-24 Bruno Haible <bruno@clisp.org> + + 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>. + 2010-12-24 Bruno Haible <bruno@clisp.org> sys_select: Ensure all necessary types on NonStop Kernel. 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