diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | libdislocator/libdislocator.so.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 { |