From 1ce4576db7f8ea7260145a947c98237ab8004be9 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 21 Apr 2025 20:35:08 -0700 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ doc/posix-functions/strsignal.texi | 3 ++- tests/test-strsignal.c | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a43dad1608..edabebed97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +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. + 2025-04-21 Paul Eggert getloadavg: port to Android 3.1- diff --git a/doc/posix-functions/strsignal.texi b/doc/posix-functions/strsignal.texi index 7127e34ad0..42d65440fa 100644 --- a/doc/posix-functions/strsignal.texi +++ b/doc/posix-functions/strsignal.texi @@ -27,5 +27,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 4ecd7abf61..b405e678c7 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -1,5 +1,5 @@ /* Test of strsignal() function. - Copyright (C) 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2008-2025 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,7 +21,9 @@ #include #include "signature.h" +#if !defined __HAIKU__ SIGNATURE_CHECK (strsignal, char *, (int)); +#endif #include -- 2.39.5