]> 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>
Thu, 18 Jan 2024 08:12:33 +0000 (09:12 +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 9e3826c6f25f44148dda6d9b1435252d70c6708f..e53cfffcb63ce737ec9eed85aa5a5aa17de06bb0 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-24  Bruno Haible  <bruno@clisp.org>
 
        floorf, ceilf tests: Strengthen against compiler optimizations.
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;