diff --git a/src/PerfCounters.cc b/src/PerfCounters.cc index a46cec4df74..74675d965f6 100644 --- a/src/PerfCounters.cc +++ b/src/PerfCounters.cc @@ -1125,7 +1125,7 @@ Ticks PerfCounters::read_ticks(Task* t, Error* error) { return ret; } - +#ifdef BPF class BpfAccelerator { public: static std::shared_ptr get_or_create(); @@ -1161,7 +1161,6 @@ class BpfAccelerator { std::shared_ptr BpfAccelerator::singleton; -#ifdef BPF /* static */ std::shared_ptr BpfAccelerator::get_or_create() { static int initialized; if (BpfAccelerator::singleton) {