From: Bruno Haible Date: Tue, 9 Sep 2025 10:49:11 +0000 (+0200) Subject: unistd-h: Remove support for OSF/1. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe8fa471554b193f9484b31a7ef5500ffd30f7b;p=thirdparty%2Fgnulib.git unistd-h: Remove support for OSF/1. * lib/unistd.in.h: Remove code for OSF/1. --- diff --git a/ChangeLog b/ChangeLog index 1499315483..04dc9a07d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-09-09 Bruno Haible + unistd-h: Remove support for OSF/1. + * lib/unistd.in.h: Remove code for OSF/1. + ttyname_r: Remove support for OSF/1. * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Remove cross-compilation guess for OSF/1. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index ea221481f8..2784924e11 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -117,10 +117,8 @@ /* mingw, MSVC, BeOS, Haiku declare environ in , not in . */ /* Solaris declares getcwd not only in but also in . */ -/* OSF Tru64 Unix cannot see gnulib rpl_strtod when system is - included here. */ /* But avoid namespace pollution on glibc systems. */ -#if !defined __GLIBC__ && !defined __osf__ +#if !defined __GLIBC__ # define __need_system_stdlib_h # include # undef __need_system_stdlib_h @@ -131,10 +129,10 @@ # include #endif -/* AIX and OSF/1 5.1 declare getdomainname in , not in . +/* AIX declares 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) \ || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \ && !defined __GLIBC__ # include @@ -1333,8 +1331,7 @@ _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len), _GL_ARG_NONNULL ((1))); # endif -/* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second - parameter is +/* Need to cast, because on Solaris 10 systems, the second parameter is int len. */ _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); # endif