From 4dbb47feb13bd56daeeaee4e567999eae8e8e463 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 8 Feb 2020 16:05:35 +0000 Subject: libdislocator FreeBSD build fix. max_align_t had been define from the 12th release. --- libdislocator/libdislocator.so.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #endif +#ifdef __FreeBSD__ +#include +#endif + #ifdef __linux__ #include #include @@ -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 { -- cgit 1.4.1