summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_ioctl.c b/tests/test_ioctl.c
index 0c9bfc6..d365641 100644
--- a/tests/test_ioctl.c
+++ b/tests/test_ioctl.c
@@ -69,8 +69,10 @@ static void test_swrap_socket(void **state)
static void test_swrap_ioctl_sock(void **state)
{
int fd;
+#ifdef SIOCGPGRP
int rc;
int grp = -127;
+#endif
(void) state; /* unused */