From a17f3dc3f89e4d0294ed046ccaca1faa2e1ae0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 22 Dec 2025 08:44:00 +0800 Subject: [PATCH] Util: fixes building on DragonFly BSD --- src/util/mallocHelper.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/mallocHelper.h b/src/util/mallocHelper.h index eaea5f3da..b784775a5 100644 --- a/src/util/mallocHelper.h +++ b/src/util/mallocHelper.h @@ -4,7 +4,11 @@ #include #if FF_HAVE_MALLOC_USABLE_SIZE || FF_HAVE_MSVC_MSIZE - #include + #if __has_include() + #include + #else + #include // For DragonFly BSD + #endif #elif FF_HAVE_MALLOC_SIZE #include #endif