From b6209b373217a7cc84e229cf8f7fff3253815b8e Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 8 Feb 2020 17:23:45 +0100 Subject: [PATCH] build fixes for FreeBSD 11 --- Makefile | 1 + libdislocator/libdislocator.so.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1307fb1..c5781256 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,7 @@ endif ifneq "$(findstring FreeBSD, $(shell uname))" "" CFLAGS += -pthread + LDFLAGS += -lpthread endif ifneq "$(findstring NetBSD, $(shell uname))" "" diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index a426c387..98f16358 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -64,7 +64,7 @@ #include "config.h" #include "types.h" -#if __STDC_VERSION__ < 201112L +#if __STDC_VERSION__ < 201112L || defined __FreeBSD__ // use this hack if not C11 typedef struct {