Fix the Win32 build for executable and perl-shared library.
[rrdtool.git] / src / rrd_restore.c
index 3e55490..817195b 100644 (file)
@@ -8,6 +8,12 @@
 #include "rrd_rpncalc.h"
 #include <fcntl.h>
 
+#ifdef WIN32
+#include <io.h>
+#define open _open
+#define close _close
+#endif
+
 /* Prototypes */
 
 void xml_lc(char*);