]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix the uid_t and gid_t declarations to match those of VS and MinGW.
authorTim Kientzle <kientzle@gmail.com>
Mon, 27 Jul 2009 04:16:54 +0000 (00:16 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 27 Jul 2009 04:16:54 +0000 (00:16 -0400)
SVN-Revision: 1289

libarchive/archive.h
libarchive/archive_entry.h

index eaefd2c8571ea07ec09f30f2eacd38e8d3fea380..0cae90273ce5bbed88e58bde8a92f2f4d5e6358c 100644 (file)
@@ -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 <unistd.h>  /* ssize_t, uid_t, and gid_t */
 #define        __LA_INT64_T    int64_t
index 54a755bd3a32c3909d3ed72d451dd988974c2eff..52fcc4a39f4b84e6d607e9755dc56b9776536b7e 100644 (file)
@@ -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