From f09d98657f7038359bd08642edf8cdd97c399344 Mon Sep 17 00:00:00 2001 From: Bruno Haible <bruno@clisp.org> Date: Fri, 1 Dec 2023 11:47:31 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ doc/glibc-functions/sethostname.texi | 2 +- tests/test-sethostname1.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7d6bd4dc5..7f53b4a134 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-12-01 Bruno Haible <bruno@clisp.org> + + 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-27 Marc Nieper-WiÃkirchen <marc@nieper-wisskirchen.de> stack: Fix documentation in header file. 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 <unistd.h> #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; -- 2.39.5