diff options
Diffstat (limited to 'tests/test-lchown.h')
-rw-r--r-- | tests/test-lchown.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-lchown.h b/tests/test-lchown.h index 1c68f4a1ba..3f5d0bc54c 100644 --- a/tests/test-lchown.h +++ b/tests/test-lchown.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 |