aboutsummaryrefslogtreecommitdiff
path: root/lib/getopt.in.h
diff options
context:
space:
mode:
authorKelvin Lee <kiyolee@gmail.com>2023-09-05 14:37:50 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-09-22 20:00:37 +0300
commitcfd1054b9b539ee92524901e95d7bb5a1fe670a0 (patch)
treeeb44ff369f19ccc907223235aaa392cf3ecb7d87 /lib/getopt.in.h
parentUpdate THANKS. (diff)
downloadxz-cfd1054b9b539ee92524901e95d7bb5a1fe670a0.tar.xz
MSVC: Don't #include <unistd.h>.
Diffstat (limited to 'lib/getopt.in.h')
-rw-r--r--lib/getopt.in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getopt.in.h b/lib/getopt.in.h
index ea77e3d7..c50dda00 100644
--- a/lib/getopt.in.h
+++ b/lib/getopt.in.h
@@ -34,7 +34,9 @@
#if defined __GETOPT_PREFIX && !defined __need_getopt
# include <stdlib.h>
# include <stdio.h>
-# include <unistd.h>
+# ifndef _MSC_VER
+# include <unistd.h>
+# endif
# undef __need_getopt
# undef getopt
# undef getopt_long