mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
fix macos commit to make it portable again. Would not compile on OpenBSD.
This commit is contained in:
@ -1478,8 +1478,9 @@ void check_cpu_governor(void) {
|
|||||||
" to make afl-fuzz skip this check - but expect some performance "
|
" to make afl-fuzz skip this check - but expect some performance "
|
||||||
"drop.\n",
|
"drop.\n",
|
||||||
min / 1024, max / 1024);
|
min / 1024, max / 1024);
|
||||||
|
FATAL("Suboptimal CPU scaling governor");
|
||||||
|
|
||||||
#else
|
#elsif defined __APPLE__
|
||||||
u64 min = 0, max = 0;
|
u64 min = 0, max = 0;
|
||||||
size_t mlen = sizeof(min);
|
size_t mlen = sizeof(min);
|
||||||
if (getenv("AFL_SKIP_CPUFREQ")) return;
|
if (getenv("AFL_SKIP_CPUFREQ")) return;
|
||||||
@ -1510,8 +1511,8 @@ void check_cpu_governor(void) {
|
|||||||
" to make afl-fuzz skip this check - but expect some performance "
|
" to make afl-fuzz skip this check - but expect some performance "
|
||||||
"drop.\n",
|
"drop.\n",
|
||||||
min / 1024, max / 1024);
|
min / 1024, max / 1024);
|
||||||
#endif
|
|
||||||
FATAL("Suboptimal CPU scaling governor");
|
FATAL("Suboptimal CPU scaling governor");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Count the number of logical CPU cores. */
|
/* Count the number of logical CPU cores. */
|
||||||
|
Reference in New Issue
Block a user