From 8377081b9917f820ae91f17e24743c84ef0cfc4d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 5 Dec 2008 11:45:19 +0100 Subject: [PATCH] Fixes for sys/stat.h on Windows. --- src/daemon.c | 4 ---- src/log.c | 1 + src/tpath.c | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/daemon.c b/src/daemon.c index f0ccd3e..c4746ca 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -27,10 +27,6 @@ #include #endif -#if HAVE_SYS_STAT_H -#include -#endif - #include #if HAVE_PWD_H diff --git a/src/log.c b/src/log.c index 40baf7f..e063725 100644 --- a/src/log.c +++ b/src/log.c @@ -14,6 +14,7 @@ #ifdef WIN32 #include +#include #endif #if HAVE_SYS_STAT_H diff --git a/src/tpath.c b/src/tpath.c index 3599ddc..d4e8cbe 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -23,6 +23,10 @@ #if HAVE_SYS_STAT_H #include #endif +#if WIN32 +#include +#endif + #if HAVE_UNISTD_H #include #endif -- 1.7.10.4