From: Tim Kientzle Date: Mon, 27 Jul 2009 04:16:54 +0000 (-0400) Subject: Fix the uid_t and gid_t declarations to match those of VS and MinGW. X-Git-Tag: v2.8.0~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f90904c54e85b5ca74803a962afc8ca2d43ba2;p=thirdparty%2Flibarchive.git Fix the uid_t and gid_t declarations to match those of VS and MinGW. SVN-Revision: 1289 --- diff --git a/libarchive/archive.h b/libarchive/archive.h index eaefd2c85..0cae90273 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -53,8 +53,8 @@ # else # define __LA_SSIZE_T long # endif -#define __LA_UID_T short -#define __LA_GID_T short +#define __LA_UID_T unsigned int +#define __LA_GID_T unsigned int #else #include /* ssize_t, uid_t, and gid_t */ #define __LA_INT64_T int64_t diff --git a/libarchive/archive_entry.h b/libarchive/archive_entry.h index 54a755bd3..52fcc4a39 100644 --- a/libarchive/archive_entry.h +++ b/libarchive/archive_entry.h @@ -44,8 +44,8 @@ /* These should match the types used in 'struct stat' */ #if defined(_WIN32) && !defined(__CYGWIN__) #define __LA_INT64_T __int64 -#define __LA_UID_T short -#define __LA_GID_T short +#define __LA_UID_T unsigned int +#define __LA_GID_T unsigned int #define __LA_DEV_T unsigned int #define __LA_MODE_T unsigned short #else