]> Savannah Git Hosting - gnulib.git/commitdiff
getlogin_r tests: Fix compilation error on some OpenSolaris derivatives.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Apr 2024 22:54:53 +0000 (00:54 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Apr 2024 03:54:24 +0000 (05:54 +0200)
* tests/test-getlogin_r.c (getlogin_r): Don't check the signature on
Solaris.

ChangeLog
tests/test-getlogin_r.c

index 407f3610242f738442d43a99c492ee6d97346739..568df09a07e64b557ff6f201ef9fa52276d2fe00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-19  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        memset_explicit: Fix compilation error on some OpenSolaris derivatives.
index 73526bc1a96e88bdf3aee1b16c5131278f92e1e7..e74aae3306385805de06c87c844e8a44bab2312f 100644 (file)
@@ -21,7 +21,9 @@
 #include <unistd.h>
 
 #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"