diff options
author | David Carlier <devnexen@gmail.com> | 2020-02-08 16:05:35 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2020-02-08 16:05:35 +0000 |
commit | 4dbb47feb13bd56daeeaee4e567999eae8e8e463 (patch) | |
tree | 371ec429d822091cfbf5e8f5d9a564433e8a36ea | |
parent | a93e11b79702eece7bda93bc8646c0bb9c2b0b64 (diff) | |
download | afl++-4dbb47feb13bd56daeeaee4e567999eae8e8e463.tar.gz |
libdislocator FreeBSD build fix. max_align_t had been define from the 12th release.
-rw-r--r-- | libdislocator/libdislocator.so.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index 98f16358..bb767495 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -33,6 +33,10 @@ #include <mach/vm_statistics.h> #endif +#ifdef __FreeBSD__ +#include <sys/param.h> +#endif + #ifdef __linux__ #include <unistd.h> #include <sys/syscall.h> @@ -64,7 +68,7 @@ #include "config.h" #include "types.h" -#if __STDC_VERSION__ < 201112L || defined __FreeBSD__ +#if __STDC_VERSION__ < 201112L || (defined(__FreeBSD__) && __FreeBSD_version < 1200000) // use this hack if not C11 typedef struct { |