Skip to content

Commit a17f3dc

Browse files
committed
Util: fixes building on DragonFly BSD
1 parent 34c0bf5 commit a17f3dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util/mallocHelper.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
#include <assert.h>
55

66
#if FF_HAVE_MALLOC_USABLE_SIZE || FF_HAVE_MSVC_MSIZE
7-
#include <malloc.h>
7+
#if __has_include(<malloc.h>)
8+
#include <malloc.h>
9+
#else
10+
#include <malloc_np.h> // For DragonFly BSD
11+
#endif
812
#elif FF_HAVE_MALLOC_SIZE
913
#include <malloc/malloc.h>
1014
#endif

0 commit comments

Comments
 (0)