From 09d26b44bf295e0ba5df2a9afcdca07ecf95e381 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Sun, 15 Oct 2006 14:42:39 +0000 Subject: [PATCH] Fix warning on FreeBSD git-svn: trunk@2387 --- clamav-devel/libclamav/blob.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clamav-devel/libclamav/blob.c b/clamav-devel/libclamav/blob.c index 7eca07b26..ccfaa396e 100644 --- a/clamav-devel/libclamav/blob.c +++ b/clamav-devel/libclamav/blob.c @@ -16,7 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ -static char const rcsid[] = "$Id: blob.c,v 1.55 2006/09/27 10:30:27 njh Exp $"; +static char const rcsid[] = "$Id: blob.c,v 1.56 2006/10/15 14:42:39 njh Exp $"; #if HAVE_CONFIG_H #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 $"; #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + #include "others.h" #include "mbox.h" #include "matcher.h" @@ -440,7 +444,7 @@ fileblobSetFilename(fileblob *fb, const char *dir, const char *filename) cli_dbgmsg("fileblobSetFilename: _mktemp_s(%s)\n", fullname); if(_mktemp_s(fullname, strlen(fullname) + 1) != 0) { char *name; - + /* _mktemp_s only allows 26 files */ cli_dbgmsg("fileblobSetFilename: _mktemp_s(%s) failed: %s\n", fullname, strerror(errno)); name = cli_gentemp(dir);