build fixes for FreeBSD 11
MODIFY
Makefile
Makefile
@@ -109,6 +109,7 @@ endif
ifneq "$(findstring FreeBSD, $(shell uname))" ""
CFLAGS += -pthread
+ LDFLAGS += -lpthread
endif
ifneq "$(findstring NetBSD, $(shell uname))" ""

MODIFY
libdislocator/libdislocator.so.c
libdislocator/libdislocator.so.c
#include "config.h"
#include "types.h"
-#if __STDC_VERSION__ < 201112L
+#if __STDC_VERSION__ < 201112L || defined __FreeBSD__
// use this hack if not C11
typedef struct {

build fixes for FreeBSD 11