diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-20 02:29:26 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-20 02:29:26 +0200 |
commit | b3774862952b27e3513b3ef82414d56bcae3b665 (patch) | |
tree | de8223564761f2428fb5835f415f6bb192669e59 /tests | |
parent | 57d2a227e2ef996dd493822ab5ad54f3e712a3b1 (diff) | |
download | gnulib-b3774862952b27e3513b3ef82414d56bcae3b665.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-chown.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-chown.h b/tests/test-chown.h index 4c7b6eec33..4e3d417d1b 100644 --- a/tests/test-chown.h +++ b/tests/test-chown.h @@ -18,6 +18,10 @@ #include "nap.h" +#if !HAVE_GETGID +# define getgid() ((gid_t) -1) +#endif + #if !HAVE_GETEGID # define getegid() ((gid_t) -1) #endif |