Util: fixes building on DragonFly BSD

This commit is contained in:
李通洲
2025-12-22 08:44:00 +08:00
parent 34c0bf58cb
commit a17f3dc3f8
+5 -1
View File
@@ -4,7 +4,11 @@
#include <assert.h>
#if FF_HAVE_MALLOC_USABLE_SIZE || FF_HAVE_MSVC_MSIZE
#include <malloc.h>
#if __has_include(<malloc.h>)
#include <malloc.h>
#else
#include <malloc_np.h> // For DragonFly BSD
#endif
#elif FF_HAVE_MALLOC_SIZE
#include <malloc/malloc.h>
#endif