[cmake-developers] cmake-2.8.5 build error on the MinGW/MSYS/wine platform
Brad King
brad.king at kitware.com
Fri Sep 16 16:40:13 EDT 2011
On 9/16/2011 4:35 PM, Brad King wrote:
> Try this patch:
>
> diff --git a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
> index 9b918a8..b2bb829 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_) && !defined(_NO_OLDNAMES))
> # define __LA_SSIZE_T ssize_t
> # elif defined(_WIN64)
As expected upstream libarchive already fixed this:
http://code.google.com/p/libarchive/source/detail?r=3649
-Brad
More information about the cmake-developers
mailing list