* modules/chown-tests (configure.ac): Test whether getgid() exists.
* modules/fchownat-tests (configure.ac): Likewise.
* tests/test-chown.h (getgid): Define a fallback.
+2023-04-19 Bruno Haible <bruno@clisp.org>
+
+ chown tests: Fix link error on mingw 10.
+ * modules/chown-tests (configure.ac): Test whether getgid() exists.
+ * modules/fchownat-tests (configure.ac): Likewise.
+ * tests/test-chown.h (getgid): Define a fallback.
+
2023-04-19 Bruno Haible <bruno@clisp.org>
ctime: Fix compilation errors in C++ mode on mingw 10.
symlink
configure.ac:
-AC_CHECK_FUNCS_ONCE([getegid])
+AC_CHECK_FUNCS_ONCE([getgid getegid])
Makefile.am:
TESTS += test-chown
symlink
configure.ac:
-AC_CHECK_FUNCS_ONCE([getegid])
+AC_CHECK_FUNCS_ONCE([getgid getegid])
Makefile.am:
TESTS += test-fchownat
#include "nap.h"
+#if !HAVE_GETGID
+# define getgid() ((gid_t) -1)
+#endif
+
#if !HAVE_GETEGID
# define getegid() ((gid_t) -1)
#endif