summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testsuite.c b/tests/testsuite.c
index ae797a7..70ffe8e 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -74,8 +74,10 @@ static void test_swrap_ioctl_sock(void **state)
fd = socket(AF_INET, SOCK_DGRAM, 0);
assert_int_not_equal(fd, -1);
+#ifdef FIONBIO
rc = ioctl(fd, FIONBIO);
assert_int_equal(rc, 0);
+#endif
#ifdef SIOCGPGRP
rc = ioctl(fd, SIOCGPGRP, &grp);