diff options
author | Brad King <brad.king@kitware.com> | 2009-11-05 21:29:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-05 21:29:30 (GMT) |
commit | db05eb1b3cfb0b01a2325f745c516639503b2486 (patch) | |
tree | c3534cf99679cb3c3116dfb8d9a9607198a5bc89 /Utilities/cmlibarchive/libarchive | |
parent | d7ef7e9416e4fd758c4777d63aeb0ee1a40d87d2 (diff) | |
download | CMake-db05eb1b3cfb0b01a2325f745c516639503b2486.zip CMake-db05eb1b3cfb0b01a2325f745c516639503b2486.tar.gz CMake-db05eb1b3cfb0b01a2325f745c516639503b2486.tar.bz2 |
libarchive: Fix try-compile for SIZE_MAX
This constant may be defined in one of a few headers. We teach the
try-compile for it to test all the headers together instead of only one
header.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_read_support_format_ar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_support_format_ar.c b/Utilities/cmlibarchive/libarchive/archive_read_support_format_ar.c index 0513cf4..bacfbbc 100644 --- a/Utilities/cmlibarchive/libarchive/archive_read_support_format_ar.c +++ b/Utilities/cmlibarchive/libarchive/archive_read_support_format_ar.c @@ -40,6 +40,9 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_read_support_format_ar.c,v 1.12 2 #ifdef HAVE_STRING_H #include <string.h> #endif +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif #include "archive.h" #include "archive_entry.h" |