[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[samba.git] / source / tests / ftruncate.c
index 8d5e8942e379867802efd1bb5ddc3a929a2ab052..93282782eedb15207ce51e42baaa377c9fc2961a 100644 (file)
@@ -1,6 +1,9 @@
 /* test whether ftruncte() can extend a file */
 
+#if defined(HAVE_UNISTD_H)
 #include <unistd.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>