aboutsummaryrefslogtreecommitdiff
path: root/src/xz/private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz/private.h')
-rw-r--r--src/xz/private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xz/private.h b/src/xz/private.h
index 8a2db9ff..57606cd6 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -21,7 +21,10 @@
#include <signal.h>
#include <locale.h>
#include <stdio.h>
-#include <unistd.h>
+
+#ifndef _MSC_VER
+# include <unistd.h>
+#endif
#include "tuklib_gettext.h"
#include "tuklib_progname.h"