only include utime.h when necessary
[rrdtool.git] / src / rrd_open.c
index dba4ca6..062de23 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"