From 1848ea5cbd582e3728ea4fe1ff619468753debea Mon Sep 17 00:00:00 2001 From: Norm Green Date: Wed, 17 Apr 2019 09:20:09 -0700 Subject: Fix AIX errors/warnings --- lib/lz4.c | 6 ++++++ tests/fuzzer.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/lib/lz4.c b/lib/lz4.c index 693bdaf..bd8fa11 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -98,8 +98,14 @@ # define LZ4_SRC_INCLUDED 1 #endif +#ifndef LZ4_STATIC_LINKING_ONLY #define LZ4_STATIC_LINKING_ONLY +#endif + +#ifndef LZ4_DISABLE_DEPRECATE_WARNINGS #define LZ4_DISABLE_DEPRECATE_WARNINGS /* due to LZ4_decompress_safe_withPrefix64k */ +#endif + #include "lz4.h" /* see also "memory routines" below */ diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 3128e6d..68e2232 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -50,6 +50,10 @@ #include #include /* INT_MAX */ +#if defined(_AIX) +# include /* mmap */ +#endif + #define LZ4_DISABLE_DEPRECATE_WARNINGS /* LZ4_decompress_fast */ #define LZ4_STATIC_LINKING_ONLY #include "lz4.h" -- cgit v0.12