From: Bruno Haible Date: Fri, 1 Dec 2023 10:47:31 +0000 (+0100) Subject: sethostname tests: Fix a compilation error on FreeBSD 14.0. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3892debca38284b7b9f01c0cc3cef32e1ef26a7e;p=gnulib.git sethostname tests: Fix a compilation error on FreeBSD 14.0. * tests/test-sethostname1.c: Skip the SIGNATURE_CHECK on some platforms. * doc/glibc-functions/sethostname.texi: Update platforms list. --- diff --git a/ChangeLog b/ChangeLog index 9e3826c6f2..e53cfffcb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-12-01 Bruno Haible + + sethostname tests: Fix a compilation error on FreeBSD 14.0. + * tests/test-sethostname1.c: Skip the SIGNATURE_CHECK on some platforms. + * doc/glibc-functions/sethostname.texi: Update platforms list. + 2023-11-24 Bruno Haible floorf, ceilf tests: Strengthen against compiler optimizations. diff --git a/doc/glibc-functions/sethostname.texi b/doc/glibc-functions/sethostname.texi index 9d6852d63e..fdfe1af4ed 100644 --- a/doc/glibc-functions/sethostname.texi +++ b/doc/glibc-functions/sethostname.texi @@ -39,5 +39,5 @@ Solaris 11 2010-11. @item The second parameter is @code{int} instead of @code{size_t} on some platforms: -macOS 11.1, MidnightBSD 2.0, Solaris 11 2010-11. +macOS 12.5, FreeBSD 14.0, MidnightBSD 3.0, IRIX 6.5, Solaris 11 2010-11, Solaris 11 OpenIndiana, Solaris 11 OmniOS. @end itemize diff --git a/tests/test-sethostname1.c b/tests/test-sethostname1.c index f3fa7cb89f..7dc62ac7a2 100644 --- a/tests/test-sethostname1.c +++ b/tests/test-sethostname1.c @@ -20,7 +20,9 @@ #include #include "signature.h" +#if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __sgi || defined __sun) SIGNATURE_CHECK (sethostname, int, (const char *, size_t)); +#endif int do_dangerous_things;