From: Adam Dickmeiss Date: Fri, 5 Dec 2008 10:45:19 +0000 (+0100) Subject: Fixes for sys/stat.h on Windows. X-Git-Tag: v3.0.40~24 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=8377081b9917f820ae91f17e24743c84ef0cfc4d Fixes for sys/stat.h on Windows. --- 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