diff options
Diffstat (limited to 'Utilities/cmtar/decode.c')
-rw-r--r-- | Utilities/cmtar/decode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmtar/decode.c b/Utilities/cmtar/decode.c index 178ffc0..788fb3f 100644 --- a/Utilities/cmtar/decode.c +++ b/Utilities/cmtar/decode.c @@ -14,10 +14,10 @@ #include <stdio.h> -#ifndef _MSC_VER -#include <sys/param.h> +#if defined(_WIN32) && !defined(__CYGWIN__) +# include <libtar/compat.h> #else -#include <libtar/compat.h> +# include <sys/param.h> #endif #ifndef WIN32 @@ -34,7 +34,7 @@ char * th_get_pathname(TAR *t) { - char filename[MAXPATHLEN]; + char filename[TAR_MAXPATHLEN]; if (t->th_buf.gnu_longname) return t->th_buf.gnu_longname; |