about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-08 17:23:45 +0100
committerhexcoder- <heiko@hexco.de>2020-02-08 17:23:45 +0100
commitb6209b373217a7cc84e229cf8f7fff3253815b8e (patch)
tree51c5ea4c2f45b9d2f882ddc020ad82ddbb26d730
parentce49ba428bde81d34c01720f6e45bb28c66adee9 (diff)
downloadafl++-b6209b373217a7cc84e229cf8f7fff3253815b8e.tar.gz
build fixes for FreeBSD 11
-rw-r--r--Makefile1
-rw-r--r--libdislocator/libdislocator.so.c2
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 {