about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-12-02 22:02:53 +0100
committerGitHub <noreply@github.com>2019-12-02 22:02:53 +0100
commit984faca4e82cc7cf600d6a32fa6fc17775901312 (patch)
tree477f89e34fe3cd1ea9bf7321a103f3ae32c4b7fe
parent1ab2a0cce927724403d04667bbc4c137fa16db70 (diff)
parent70ad97d739e16cf1f12814f1c71745780194bca3 (diff)
downloadafl++-984faca4e82cc7cf600d6a32fa6fc17775901312.tar.gz
Merge pull request #128 from devnexen/libtokencap_dflybsd
Enable libtokencap on DragonFlyBSD
-rw-r--r--libtokencap/Makefile3
-rw-r--r--libtokencap/libtokencap.so.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/libtokencap/Makefile b/libtokencap/Makefile
index b1313430..486c6c9e 100644
--- a/libtokencap/Makefile
+++ b/libtokencap/Makefile
@@ -37,6 +37,9 @@ endif
 ifeq "$(shell uname)" "NetBSD"
   TARGETS = libtokencap.so
 endif
+ifeq "$(shell uname)" "DragonFly"
+  TARGETS = libtokencap.so
+endif
 all: $(TARGETS)
 
 libtokencap.so: libtokencap.so.c ../config.h
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c
index e16fb772..647b85bc 100644
--- a/libtokencap/libtokencap.so.c
+++ b/libtokencap/libtokencap.so.c
@@ -33,7 +33,7 @@
 #include "../config.h"
 
 #if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && \
-    !defined __OpenBSD__ && !defined __NetBSD__
+    !defined __OpenBSD__ && !defined __NetBSD__ && !defined __DragonFly__
 #error "Sorry, this library is unsupported in this platform for now!"
 #endif /* !__linux__ && !__APPLE__ && ! __FreeBSD__ && ! __OpenBSD__ && \
           !__NetBSD__*/