diff options
author | Jairo <kidandcat@gmail.com> | 2022-02-07 00:13:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 00:13:18 +0100 |
commit | 9d1c5db643515c9fd375d46ec9fc98f7a6734a1b (patch) | |
tree | ced22ad658803d2b6b5761fb41a6296dc7998e2e /contrib | |
parent | d67c6ea36d4652cd48e1c1d23982e162929636f6 (diff) | |
download | libarchive-9d1c5db643515c9fd375d46ec9fc98f7a6734a1b.tar.gz |
Update untar.c
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/untar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/untar.c b/contrib/untar.c index e4d3a3fb..4d10c264 100644 --- a/contrib/untar.c +++ b/contrib/untar.c @@ -82,7 +82,7 @@ create_dir(char *pathname, int mode) pathname[strlen(pathname) - 1] = '\0'; /* Try creating the directory. */ - #if defined(_WIN32) + #if defined(_WIN32) && !defined(__CYGWIN__) r = _mkdir(pathname); #else r = mkdir(pathname, mode); @@ -95,7 +95,7 @@ create_dir(char *pathname, int mode) *p = '\0'; create_dir(pathname, 0755); *p = '/'; - #if defined(_WIN32) + #if defined(_WIN32) && !defined(__CYGWIN__) r = _mkdir(pathname); #else r = mkdir(pathname, mode); |