summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-chown.h4
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