aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec
diff options
context:
space:
mode:
Diffstat (limited to 'src/xzdec')
-rw-r--r--src/xzdec/xzdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index c1bd1998..95a412f4 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -16,7 +16,10 @@
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>
-#include <unistd.h>
+
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
#include "getopt.h"
#include "tuklib_progname.h"