about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-09 19:05:05 +0200
committerGitHub <noreply@github.com>2020-07-09 19:05:05 +0200
commit88bd460100d305c694de55615aad2925d0689450 (patch)
tree6c636835dbe7d54a986e1eee7301a08aef3a6a16
parent7c8d8233966c5f3009710efeb9c9efb50015ebbb (diff)
parent90adc2cb853482ae058a4b09719502ec6c3c22b8 (diff)
downloadafl++-88bd460100d305c694de55615aad2925d0689450.tar.gz
Merge pull request #449 from devnexen/illumos_typo
illumos littlefixes: little typo for cpu binding and
-rw-r--r--gcc_plugin/GNUmakefile7
-rw-r--r--src/afl-fuzz-init.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc_plugin/GNUmakefile b/gcc_plugin/GNUmakefile
index bf5c53e0..002437cb 100644
--- a/gcc_plugin/GNUmakefile
+++ b/gcc_plugin/GNUmakefile
@@ -70,9 +70,14 @@ ifeq "$(TEST_MMAP)" "1"
 endif
 
 ifneq "$(shell uname -s)" "Haiku"
-	LDFLAGS += -lrt
+  LDFLAGS += -lrt
 endif
 
+ifeq "$(shell uname -s)" "SunOS"
+  PLUGIN_FLAGS += -I/usr/include/gmp
+endif
+
+
 PROGS        = ../afl-gcc-fast ../afl-gcc-pass.so ../afl-gcc-rt.o
 
 
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index e51b4729..e95ae95f 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -398,7 +398,7 @@ if (pset_bind(c, P_PID, getpid(), NULL)) {
 
   if (cpu_start == afl->cpu_core_count)
     PFATAL("pset_bind failed for cpu %d, exit", i);
-  WARNF("pthread_setaffinity failed to CPU %d, trying next CPU", i);
+  WARNF("pset_bind failed to CPU %d, trying next CPU", i);
   cpu_start++;
   goto try
     ;