From: Collin Funk Date: Tue, 22 Apr 2025 03:35:08 +0000 (-0700) Subject: strsignal tests: Disable signature check on Haiku. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b05d9ebbc823972f568107c4ed9b79c6dfae496c;p=gnulib.git strsignal tests: Disable signature check on Haiku. * tests/test-strsignal.c [__HAIKU__]: Skip signature check. * doc/posix-functions/strsignal.texi: Document that strsignal returns 'const char *' instead of 'char *' on Haiku. --- diff --git a/ChangeLog b/ChangeLog index 69b6fd7a8d..89250b7739 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2025-04-21 Collin Funk + strsignal tests: Disable signature check on Haiku. + * tests/test-strsignal.c [__HAIKU__]: Skip signature check. + * doc/posix-functions/strsignal.texi: Document that strsignal returns + 'const char *' instead of 'char *' on Haiku. + getloadavg: Fix typo in previous commit. * lib/getloadavg.c (getloadavg): Remove '__' prefix from 'defined'. diff --git a/doc/posix-functions/strsignal.texi b/doc/posix-functions/strsignal.texi index 23881cf1b3..10bfdc519e 100644 --- a/doc/posix-functions/strsignal.texi +++ b/doc/posix-functions/strsignal.texi @@ -28,5 +28,6 @@ Portability problems not fixed by Gnulib: @itemize @item This function returns @code{const char *} instead of @code{char *} on some platforms: -cygwin 1.5.25. +@c https://dev.haiku-os.org/ticket/19537 +cygwin 1.5.25, Haiku. @end itemize diff --git a/tests/test-strsignal.c b/tests/test-strsignal.c index 4ed4cc3e23..21f0e956fa 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -21,7 +21,9 @@ #include #include "signature.h" +#if !defined __HAIKU__ SIGNATURE_CHECK (strsignal, char *, (int)); +#endif #include