aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/msgfile.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/msgfile.c b/src/msgfile.c
index 71509a0..d0ea9f6 100644
--- a/src/msgfile.c
+++ b/src/msgfile.c
@@ -22,11 +22,18 @@
*/
#include "zexy.h"
+
+#ifdef __WIN32__
+# include <io.h>
+#else
+# include <unistd.h>
+#endif
+
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
-#include <unistd.h>
+
/* ****************************************************************************** */
/* msgfile : save and load messages... */