git-svn: trunk@1900
Nigel Horne authored on 2006/04/09 18:36:36... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sun Apr 9 10:35:15 BST 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Fix compilation error on CYGWIN |
|
4 |
+ |
|
1 | 5 |
Sat Apr 8 01:22:47 CEST 2006 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: code cleanup: move repeated endian conversion and other (MAX, |
... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: mbox.c,v 1.283 2006/04/07 16:30:53 nigelhorne Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: mbox.c,v 1.284 2006/04/09 09:32:59 nigelhorne Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -3601,7 +3601,7 @@ rfc1341(message *m, const char *dir) |
3601 | 3601 |
if(id == NULL) |
3602 | 3602 |
return -1; |
3603 | 3603 |
|
3604 |
-#ifdef CYGWIN |
|
3604 |
+#ifdef C_CYGWIN |
|
3605 | 3605 |
if((tmpdir = getenv("TEMP")) == (char *)NULL) |
3606 | 3606 |
if((tmpdir = getenv("TMP")) == (char *)NULL) |
3607 | 3607 |
if((tmpdir = getenv("TMPDIR")) == (char *)NULL) |
... | ... |
@@ -3720,8 +3720,10 @@ rfc1341(message *m, const char *dir) |
3720 | 3720 |
extern short cli_leavetemps_flag; |
3721 | 3721 |
struct stat statb; |
3722 | 3722 |
|
3723 |
+#ifdef C_CYGWIN |
|
3723 | 3724 |
if(dent->d_ino == 0) |
3724 | 3725 |
continue; |
3726 |
+#endif |
|
3725 | 3727 |
|
3726 | 3728 |
snprintf(fullname, sizeof(fullname) - 1, |
3727 | 3729 |
"%s/%s", pdir, dent->d_name); |