From: Bruno Haible Date: Fri, 19 Apr 2024 22:54:53 +0000 (+0200) Subject: getlogin_r tests: Fix compilation error on some OpenSolaris derivatives. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=836d91adecf97bfc3966928844b55f4ea770971a;p=gnulib.git getlogin_r tests: Fix compilation error on some OpenSolaris derivatives. * tests/test-getlogin_r.c (getlogin_r): Don't check the signature on Solaris. --- diff --git a/ChangeLog b/ChangeLog index 407f361024..568df09a07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-19 Bruno Haible + + getlogin_r tests: Fix compilation error on some OpenSolaris derivatives. + * tests/test-getlogin_r.c (getlogin_r): Don't check the signature on + Solaris. + 2024-04-19 Bruno Haible memset_explicit: Fix compilation error on some OpenSolaris derivatives. diff --git a/tests/test-getlogin_r.c b/tests/test-getlogin_r.c index 73526bc1a9..e74aae3306 100644 --- a/tests/test-getlogin_r.c +++ b/tests/test-getlogin_r.c @@ -21,7 +21,9 @@ #include #include "signature.h" +#if !defined __sun /* On Solaris, the second parameter is of type 'int'. */ SIGNATURE_CHECK (getlogin_r, int, (char *, size_t)); +#endif #include "test-getlogin.h"