Browse code

libclamav/cpio.c: wrap unistd.h, reported by Nigel Horne

Tomasz Kojm authored on 2009/08/19 06:53:04
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Aug 18 23:52:20 CEST 2009 (tk)
2
+----------------------------------
3
+ * libclamav/cpio.c: wrap unistd.h, reported by Nigel Horne
4
+
1 5
 Mon Aug 17 13:54:09 CEST 2009 (acab)
2 6
 ------------------------------------
3 7
  * libclamav/7z: convert EOL to unix for compat with suncc
... ...
@@ -25,7 +25,9 @@
25 25
 #include <stdio.h>
26 26
 #include <string.h>
27 27
 #include <ctype.h>
28
+#ifdef HAVE_UNISTD_H
28 29
 #include <unistd.h>
30
+#endif
29 31
 #include <sys/types.h>
30 32
 #include <sys/stat.h>
31 33
 #include <fcntl.h>