Browse code

fix build on FreeBSD and Mac OS X (bb #1776).

Thanks to Renato Botelho.

Török Edvin authored on 2009/12/22 16:33:34
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Tue Dec 22 09:32:33 EET 2009 (edwin)
2
+------------------------------------
3
+ * libclamav/fmap.h: fix build on FreeBSD and Mac OS X (bb #1776). Thanks to
4
+    Renato Botelho.
5
+
1 6
 Wed Dec 16 15:33:01 CET 2009 (acab)
2 7
 -----------------------------------
3 8
  * libclamav/unzip.c: do not mark embedded zipfiles as
... ...
@@ -21,6 +21,10 @@
21 21
 #ifndef __FMAP_H
22 22
 #define __FMAP_H
23 23
 
24
+#ifdef HAVE_UNISTD_H
25
+#include <unistd.h>
26
+#endif
27
+
24 28
 #include <time.h>
25 29
 #include "cltypes.h"
26 30