Merge pull request #192 from devnexen/libdislocator_fbsd_build_fix

libdislocator FreeBSD build fix. max_align_t had been define from the…
This commit is contained in:
Andrea Fioraldi
2020-02-08 18:14:32 +01:00
committed by GitHub

View File

@ -33,6 +33,10 @@
#include <mach/vm_statistics.h> #include <mach/vm_statistics.h>
#endif #endif
#ifdef __FreeBSD__
#include <sys/param.h>
#endif
#ifdef __linux__ #ifdef __linux__
#include <unistd.h> #include <unistd.h>
#include <sys/syscall.h> #include <sys/syscall.h>
@ -64,7 +68,7 @@
#include "config.h" #include "config.h"
#include "types.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 // use this hack if not C11
typedef struct { typedef struct {