summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHarry Sintonen <sintonen@iki.fi>2020-03-30 16:52:43 +0300
committerDaniel Stenberg <daniel@haxx.se>2020-03-31 10:59:06 +0200
commit7a71965e9761f80aa4508472c5b1e3ab03ba018a (patch)
tree1c2e814c559407fc853f21ffbf7e4bdd55549ee9 /tests
parent14dd0c020072c161827a75e3a4a236f134a8960c (diff)
downloadcurl-7a71965e9761f80aa4508472c5b1e3ab03ba018a.tar.gz
build: fixed build for systems with select() in unistd.h
Closes #5169
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 4f2af415a..4806375a0 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -36,6 +36,8 @@
#ifdef HAVE_SYS_SELECT_H
/* since so many tests use select(), we can just as well include it here */
#include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
#endif
#ifdef TPF