Browse code

Use mkstemp on cygwin

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

Nigel Horne authored on 2004/05/14 17:16:46
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri May 14 09:16:12 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/mbox.c:	Use mkstemp() on Cygwin
4
+
1 5
 Thu May 13 02:22:50 CEST 2004 (tk)
2 6
 ----------------------------------
3 7
   * libclamav: move putenv(TMPDIR) code from clamd to cl_settempdir()
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.73  2004/05/14 08:15:55  nigelhorne
21
+ * Use mkstemp on cygwin
22
+ *
20 23
  * Revision 1.72  2004/05/12 11:20:37  nigelhorne
21 24
  * More bounce message false positives handled
22 25
  *
... ...
@@ -204,7 +207,7 @@
204 204
  * Compilable under SCO; removed duplicate code with message.c
205 205
  *
206 206
  */
207
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.72 2004/05/12 11:20:37 nigelhorne Exp $";
207
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.73 2004/05/14 08:15:55 nigelhorne Exp $";
208 208
 
209 209
 #if HAVE_CONFIG_H
210 210
 #include "clamav-config.h"
... ...
@@ -1905,7 +1908,7 @@ saveFile(const blob *b, const char *dir)
1905 1905
 	/*
1906 1906
 	 * TODO: add a HAVE_MKSTEMP property
1907 1907
 	 */
1908
-#if	defined(C_LINUX) || defined(C_BSD) || defined(HAVE_MKSTEMP) || defined(C_SOLARIS)
1908
+#if	defined(C_LINUX) || defined(C_BSD) || defined(HAVE_MKSTEMP) || defined(C_SOLARIS) || defined(C_CYGWIN)
1909 1909
 	fd = mkstemp(filename);
1910 1910
 #else
1911 1911
 	(void)mktemp(filename);