diff options
Diffstat (limited to 'Utilities/cmlibarchive/libarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_endian.h | 2 | ||||
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_endian.h b/Utilities/cmlibarchive/libarchive/archive_endian.h index 265f064..24d133f 100644 --- a/Utilities/cmlibarchive/libarchive/archive_endian.h +++ b/Utilities/cmlibarchive/libarchive/archive_endian.h @@ -45,7 +45,7 @@ * - SGI MIPSpro * - Microsoft Visual C++ 6.0 (supposedly newer versions too) */ -#if defined(__WATCOMC__) || defined(__sgi) +#if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) #define inline #elif defined(_MSC_VER) #define inline __inline diff --git a/Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c b/Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c index 5d79cbf..f5912d5 100644 --- a/Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c +++ b/Utilities/cmlibarchive/libarchive/archive_read_support_format_tar.c @@ -773,7 +773,11 @@ header_Solaris_ACL(struct archive_read *a, struct tar *tar, } p++; } +#ifdef __hpux + switch ((int)type & ~0777777) { +#else switch (type & ~0777777) { +#endif case 01000000: /* POSIX.1e ACL */ break; |