diff options
author | van Hauser <vh@thc.org> | 2019-07-26 16:02:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 16:02:54 +0200 |
commit | 7ca22cd552ff21ac0ef7cc1ab5e6e71912752a58 (patch) | |
tree | 0efd0d37040cf04d8604810ec730811b2e53993a /afl-fuzz.c | |
parent | 2b6fe347ae38993bc2e31a430eff3f4a9b5164e4 (diff) | |
parent | 30586e634ddb58bad08e9cb662f0ccc44f45b91a (diff) | |
download | afl++-7ca22cd552ff21ac0ef7cc1ab5e6e71912752a58.tar.gz |
Merge pull request #33 from t6/patch-freebsd
Unbreak build on FreeBSD
Diffstat (limited to 'afl-fuzz.c')
-rw-r--r-- | afl-fuzz.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/afl-fuzz.c b/afl-fuzz.c index f974268f..6c003ae6 100644 --- a/afl-fuzz.c +++ b/afl-fuzz.c @@ -4336,9 +4336,15 @@ static void show_stats(void) { banner_pad = (79 - banner_len) / 2; memset(tmp, ' ', banner_pad); +#ifdef HAVE_AFFINITY sprintf(tmp + banner_pad, "%s " cLCY VERSION cLGN " (%s) " cPIN "[%s]" cBLU " {%d}", crash_mode ? cPIN "peruvian were-rabbit" : cYEL "american fuzzy lop", use_banner, power_name, cpu_aff); +#else + sprintf(tmp + banner_pad, "%s " cLCY VERSION cLGN + " (%s) " cPIN "[%s]", crash_mode ? cPIN "peruvian were-rabbit" : + cYEL "american fuzzy lop", use_banner, power_name); +#endif /* HAVE_AFFINITY */ SAYF("\n%s\n", tmp); @@ -11527,7 +11533,7 @@ static void check_crash_handling(void) { /* Check CPU governor. */ static void check_cpu_governor(void) { - +#ifdef __linux__ FILE* f; u8 tmp[128]; u64 min = 0, max = 0; @@ -11590,7 +11596,7 @@ static void check_cpu_governor(void) { min / 1024, max / 1024); FATAL("Suboptimal CPU scaling governor"); - +#endif } |