diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2018-06-01 21:40:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 21:40:22 (GMT) |
commit | 1466e0b7f29176a1c1792ecc28fa64e29d5aaa69 (patch) | |
tree | fe167c87ee0e238dd59f118a491a17f78f274880 | |
parent | ef4f1e3047443c58786c6531ae9718ce07e0be68 (diff) | |
parent | 628c1fbb3c10cbd924a03b2180aa2dfd4a9b0870 (diff) | |
download | lz4-1466e0b7f29176a1c1792ecc28fa64e29d5aaa69.zip lz4-1466e0b7f29176a1c1792ecc28fa64e29d5aaa69.tar.gz lz4-1466e0b7f29176a1c1792ecc28fa64e29d5aaa69.tar.bz2 |
Merge pull request #543 from nrgiii/aix_32bit_fuzzer
Aix 32bit fuzzer
-rw-r--r-- | tests/fuzzer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 5dd75b3..5a92f8f 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -38,7 +38,7 @@ /*-************************************ * Dependencies **************************************/ -#ifdef __unix__ /* must be included before platform.h for MAP_ANONYMOUS */ +#if defined(__unix__) && !defined(_AIX) /* must be included before platform.h for MAP_ANONYMOUS */ # include <sys/mman.h> /* mmap */ #endif #include "platform.h" /* _CRT_SECURE_NO_WARNINGS */ @@ -48,6 +48,10 @@ #include <string.h> /* strcmp */ #include <time.h> /* clock_t, clock, CLOCKS_PER_SEC */ #include <assert.h> +#if defined(__unix__) && defined(_AIX) +# include <sys/mman.h> /* mmap */ +#endif + #define LZ4_STATIC_LINKING_ONLY #define LZ4_HC_STATIC_LINKING_ONLY #include "lz4hc.h" |