]> Savannah Git Hosting - gnulib.git/commitdiff
sethostname tests: Fix a compilation error on FreeBSD 14.0.
authorBruno Haible <bruno@clisp.org>
Fri, 1 Dec 2023 10:47:31 +0000 (11:47 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 1 Dec 2023 10:47:31 +0000 (11:47 +0100)
* tests/test-sethostname1.c: Skip the SIGNATURE_CHECK on some platforms.
* doc/glibc-functions/sethostname.texi: Update platforms list.

ChangeLog
doc/glibc-functions/sethostname.texi
tests/test-sethostname1.c

index c7d6bd4dc5b6ecb45a68bd35dc3eb31c2888f206..7f53b4a134bdac4aa68aae51751dc37aff9d78c5 100644 (file)
--- 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.
index 9d6852d63ea9c6780eee57c44f302bf87bac95ec..fdfe1af4eda56fc80d00b996ab8b9a3fa3389fc1 100644 (file)
@@ -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
index f3fa7cb89f3d86b2991a7f01147020e9b5a3dbcb..7dc62ac7a25a750b4649417b7dc47b94c812b9f0 100644 (file)
@@ -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;