Code

only include utime.h when necessary
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 25 May 2009 06:05:55 +0000 (06:05 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 25 May 2009 06:05:55 +0000 (06:05 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1809 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_open.c

index dba4ca6fbebbefca9788586786301b104890e1c6..062de236b0b41c77674dd8fabc202e48e8482c50 100644 (file)
@@ -6,10 +6,16 @@
  * $Id$
  *****************************************************************************/
 
+#ifdef WIN32
 #include <stdlib.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#endif
+
+#ifdef HAVE_BROKEN_MS_ASYNC
+#include <sys/types.h>
 #include <utime.h>
+#endif
 
 #include "rrd_tool.h"
 #include "unused.h"