diff --git a/compiler-rt/test/fuzzer/TableLookupTest.cpp b/compiler-rt/test/fuzzer/TableLookupTest.cpp --- a/compiler-rt/test/fuzzer/TableLookupTest.cpp +++ b/compiler-rt/test/fuzzer/TableLookupTest.cpp @@ -22,7 +22,7 @@ // Use either `Counters[Idx] = 1` or `Counters[Idx]++;` // depending on whether multiple occurrences of the event 'Idx' // is important to distinguish from one occurrence. -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) __attribute__((section("__libfuzzer_extra_counters"))) #endif #ifdef _WIN32