summaryrefslogtreecommitdiffstats
path: root/source/tests/crypttest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests/crypttest.c')
-rw-r--r--source/tests/crypttest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/tests/crypttest.c b/source/tests/crypttest.c
index 183ed06394e..c9133f40bee 100644
--- a/source/tests/crypttest.c
+++ b/source/tests/crypttest.c
@@ -1,4 +1,7 @@
+#if defined(HAVE_UNISTD_H)
#include <unistd.h>
+#endif
+
#include <sys/types.h>
#ifdef HAVE_STRING_H