Browse code

Fix warning on FreeBSD

git-svn: trunk@2387

Nigel Horne authored on 2006/10/15 23:42:39
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: blob.c,v 1.55 2006/09/27 10:30:27 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: blob.c,v 1.56 2006/10/15 14:42:39 njh Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -41,6 +41,10 @@ static	char	const	rcsid[] = "$Id: blob.c,v 1.55 2006/09/27 10:30:27 njh Exp $";
41 41
 #include <sys/types.h>
42 42
 #endif
43 43
 
44
+#ifdef	HAVE_UNISTD_H
45
+#include <unistd.h>
46
+#endif
47
+
44 48
 #include "others.h"
45 49
 #include "mbox.h"
46 50
 #include "matcher.h"
... ...
@@ -440,7 +444,7 @@ fileblobSetFilename(fileblob *fb, const char *dir, const char *filename)
440 440
 	cli_dbgmsg("fileblobSetFilename: _mktemp_s(%s)\n", fullname);
441 441
 	if(_mktemp_s(fullname, strlen(fullname) + 1) != 0) {
442 442
 		char *name;
443
-		
443
+
444 444
 		/* _mktemp_s only allows 26 files */
445 445
 		cli_dbgmsg("fileblobSetFilename: _mktemp_s(%s) failed: %s\n", fullname, strerror(errno));
446 446
 		name = cli_gentemp(dir);