# HG changeset patch # User Bruno Haible # Date 1293205150 -3600 # Node ID 55491ce6972de62b2f3c1e6348521e6410ef3e96 # Parent 68009ff4e161b77e9b86e2182e053b199ca18184 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 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/lib/unistd.in.h b/lib/unistd.in.h --- 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