From: Bruno Haible Date: Fri, 24 Dec 2010 15:39:10 +0000 (+0100) Subject: gethostname: Ensure declaration on NonStop Kernel. X-Git-Tag: v0.1~3475 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=bce5ad8b3398b2b5958267e79c342e0b20c8f3bb;p=gnulib.git gethostname: Ensure declaration on NonStop Kernel. * lib/unistd.in.h: Include also on NonStop Kernel systems. Reported by Joachim Schmitz . --- diff --git a/ChangeLog b/ChangeLog index ed375b6a4..3abaad082 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-12-24 Bruno Haible + gethostname: Ensure declaration on NonStop Kernel. + * lib/unistd.in.h: Include also on NonStop Kernel systems. + Reported by Joachim Schmitz . + +2010-12-24 Bruno Haible + sys_select: Ensure all necessary types on NonStop Kernel. * lib/sys_select.in.h: If the system does not have , include . diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 1dd06bfa6..6fe77230e 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -88,9 +88,11 @@ # include #endif -/* AIX and OSF/1 5.1 declare getdomainname in , not in . */ +/* AIX and OSF/1 5.1 declare getdomainname in , not in . + NonStop Kernel declares gethostname in , not in . */ /* 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 #endif