]> 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 08:57:33 +0000 (10:57 +0200)
* tests/test-getlogin_r.c (getlogin_r): Don't check the signature on
Solaris.

ChangeLog
tests/test-getlogin_r.c

index fb370bedccce125885863e48eb44ad8966ff1e44..6c0f21a136251fe825df2252241d710c1b49f2eb 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 26ebcd9abc5d289e33ba5f93335474db1164bed2..e74aae3306385805de06c87c844e8a44bab2312f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of getting user name.
-   Copyright (C) 2010-2023 Free Software Foundation, Inc.
+   Copyright (C) 2010-2024 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 <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"