[tests] include unistd for unlink, close (linux, darwin)
authorPaul Brossier <piem@piem.org>
Wed, 28 Nov 2018 22:04:00 +0000 (23:04 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 28 Nov 2018 22:04:00 +0000 (23:04 +0100)
tests/utils_tests.h

index de157a6..ee48e76 100644 (file)
@@ -5,6 +5,10 @@
 #include <assert.h>
 #include "config.h"
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> // unlink, close
+#endif
+
 #ifdef HAVE_LIMITS_H
 #include <limits.h> // PATH_MAX
 #endif /* HAVE_LIMITS_H */