From 1e5a6b2eef4534a27144d7279067ebb696417c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 5 Jun 2024 15:37:39 +0800 Subject: [PATCH] CPUCache (FreeBSD): fix build --- CMakeLists.txt | 2 +- src/detection/cpucache/cpucache_nosupport.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/detection/cpucache/cpucache_nosupport.c diff --git a/CMakeLists.txt b/CMakeLists.txt index b20f57467..c6085504b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -544,7 +544,7 @@ elseif(BSD) src/detection/brightness/brightness_bsd.c src/detection/chassis/chassis_bsd.c src/detection/cpu/cpu_bsd.c - src/detection/cpucache/cpucache_bsd.c + src/detection/cpucache/cpucache_nosupport.c src/detection/cpuusage/cpuusage_bsd.c src/detection/cursor/cursor_linux.c src/detection/disk/disk_bsd.c diff --git a/src/detection/cpucache/cpucache_nosupport.c b/src/detection/cpucache/cpucache_nosupport.c new file mode 100644 index 000000000..5d5291209 --- /dev/null +++ b/src/detection/cpucache/cpucache_nosupport.c @@ -0,0 +1,7 @@ +#include "cpucache.h" +#include "common/sysctl.h" + +const char* ffDetectCPUCache(FF_MAYBE_UNUSED FFCPUCacheResult* result) +{ + return "Not supported on this platform"; +}