From 836d91adecf97bfc3966928844b55f4ea770971a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 20 Apr 2024 00:54:53 +0200 Subject: [PATCH] getlogin_r tests: Fix compilation error on some OpenSolaris derivatives. * tests/test-getlogin_r.c (getlogin_r): Don't check the signature on Solaris. --- ChangeLog | 6 ++++++ tests/test-getlogin_r.c | 2 ++ 2 files changed, 8 insertions(+) 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" -- 2.39.5