Fixes for sys/stat.h on Windows.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 5 Dec 2008 10:45:19 +0000 (11:45 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 5 Dec 2008 10:45:19 +0000 (11:45 +0100)
src/daemon.c
src/log.c
src/tpath.c

index f0ccd3e..c4746ca 100644 (file)
 #include <sys/types.h>
 #endif
 
 #include <sys/types.h>
 #endif
 
-#if HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-
 #include <fcntl.h>
 
 #if HAVE_PWD_H
 #include <fcntl.h>
 
 #if HAVE_PWD_H
index 40baf7f..e063725 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -14,6 +14,7 @@
 
 #ifdef WIN32
 #include <windows.h>
 
 #ifdef WIN32
 #include <windows.h>
+#include <sys/stat.h>
 #endif
 
 #if HAVE_SYS_STAT_H
 #endif
 
 #if HAVE_SYS_STAT_H
index 3599ddc..d4e8cbe 100644 (file)
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
 #if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#if WIN32
+#include <sys/stat.h>
+#endif
+
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif