diff options
author | Brad King <brad.king@kitware.com> | 2011-09-16 20:42:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-09-16 20:44:44 (GMT) |
commit | 8dfe74c358c5c5b364341a5fda1a43281d5bcc97 (patch) | |
tree | 77538437590e4f41860b3f6a853e451c016af7ef /Utilities/cmlibarchive | |
parent | 7fca32a0bb4fa53ea95fd7f515798c21b59f1542 (diff) | |
download | CMake-8dfe74c358c5c5b364341a5fda1a43281d5bcc97.zip CMake-8dfe74c358c5c5b364341a5fda1a43281d5bcc97.tar.gz CMake-8dfe74c358c5c5b364341a5fda1a43281d5bcc97.tar.bz2 |
libarchive: Fix ssize_t detection with mingwrt 3.20
This version of MinGW defines _SSIZE_T_ for ssize_t. This patch is
based on upstream libarchive SVN commit 3649 (Fix build with mingwrt
3.20, 2011-08-27).
Inspired-by: Tim Kientzle <kientzle@freebsd.org>
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h index 9b918a8..8bc612f 100644 --- a/Utilities/cmlibarchive/libarchive/archive.h +++ b/Utilities/cmlibarchive/libarchive/archive.h @@ -52,7 +52,7 @@ /* These should match the types used in 'struct stat' */ #if defined(_WIN32) && !defined(__CYGWIN__) #define __LA_INT64_T __int64 -# if defined(_SSIZE_T_DEFINED) +# if defined(_SSIZE_T_DEFINED) || defined(_SSIZE_T_) # define __LA_SSIZE_T ssize_t # elif defined(_WIN64) # define __LA_SSIZE_T __int64 |