Browse code

wrap unistd in shared/actions.c

aCaB authored on 2009/07/27 01:56:13
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Jul 26 18:55:37 CEST 2009 (acab)
2
+------------------------------------
3
+ * shared/actions.c: wrap unistd - reported by njh
4
+
1 5
 Sun Jul 19 16:19:49 CEST 2009 (acab)
2 6
 ------------------------------------
3 7
  * libclamav/pe.c: check IS-cab scan result
... ...
@@ -26,7 +26,9 @@
26 26
 #include <string.h>
27 27
 #include <sys/types.h>
28 28
 #include <sys/stat.h>
29
+#if HAVE_UNISTD_H
29 30
 #include <unistd.h>
31
+#endif
30 32
 #include <fcntl.h>
31 33
 #include <utime.h>
32 34
 #include <errno.h>