Browse code

Fix compilation error on Windows with MSVC

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2129 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2006/07/27 03:45:32
Showing 1 changed files
... ...
@@ -36,13 +36,15 @@
36 36
  * TODO: Remove the vcard handling
37 37
  * FIXME: The code does little error checking of OOM scenarios
38 38
  */
39
-static	char	const	rcsid[] = "$Id: pst.c,v 1.28 2006/05/19 11:02:12 njh Exp $";
39
+static	char	const	rcsid[] = "$Id: pst.c,v 1.29 2006/07/26 18:45:32 njh Exp $";
40 40
 
41 41
 #if HAVE_CONFIG_H
42 42
 #include "clamav-config.h"	/* must come first */
43 43
 #endif
44 44
 
45
+#ifdef	HAVE_UNISTD_H
45 46
 #include <unistd.h>
47
+#endif
46 48
 #include <stdio.h>
47 49
 #include <stdlib.h>
48 50
 #include <stdarg.h>
... ...
@@ -55,7 +57,7 @@ static	char	const	rcsid[] = "$Id: pst.c,v 1.28 2006/05/19 11:02:12 njh Exp $";
55 55
 #include "cltypes.h"
56 56
 #include "others.h"
57 57
 
58
-#ifdef	C_SOLARIS	/* should be in cltypes.h */
58
+#if	defined(C_SOLARIS) || defined(C_WINDOWS)	/* should be in cltypes.h */
59 59
 typedef	uint16_t	u_int16_t;
60 60
 typedef	uint32_t	u_int32_t;
61 61
 #endif