From 4ed874500c66aeb60cb11a0acc081dbc113eec51 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 16 Jul 2010 09:58:26 +0200 Subject: Windows fixes and CMake scripts to build under Windows --- src/rccxml.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/rccxml.c') diff --git a/src/rccxml.c b/src/rccxml.c index 1db5788..cc07fa9 100644 --- a/src/rccxml.c +++ b/src/rccxml.c @@ -18,9 +18,13 @@ */ #include -#include #include +#include +#ifdef HAVE_STRINGS_H +# include +#endif /* HAVE_STRINGS_H */ + #include "../config.h" #ifdef HAVE_UNISTD_H @@ -467,7 +471,10 @@ clear: } xmlFreeDoc(doc); } + +#ifdef HAVE_FSYNC fsync(fd); +#endif /* HAVE_FSYNC */ #if defined(HAVE_FLOCK) flock(fd, LOCK_UN); -- cgit v1.2.3