From 34a6eb13c63b6621137d8371bc4d17dd5d98da08 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Thu, 9 May 2024 09:51:41 +0800 Subject: [PATCH] Loadavg (BSD): add missing headers --- src/detection/loadavg/loadavg_bsd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/detection/loadavg/loadavg_bsd.c b/src/detection/loadavg/loadavg_bsd.c index 95c0c49cb..71c4304c1 100644 --- a/src/detection/loadavg/loadavg_bsd.c +++ b/src/detection/loadavg/loadavg_bsd.c @@ -2,6 +2,12 @@ #include +#ifdef __FreeBSD__ + #include + #include + #include +#endif + const char* ffDetectLoadavg(double result[3]) { struct loadavg load;