summaryrefslogtreecommitdiff
path: root/qjs.c
diff options
context:
space:
mode:
authorNick Vatamaniuc <nickva@users.noreply.github.com>2024-02-12 05:28:00 -0500
committerGitHub <noreply@github.com>2024-02-12 11:28:00 +0100
commit636c946531c3c1e1c113b509b06a84a973b591a1 (patch)
tree89fecf128d2af5e8fc8c32b4efe58186c4d13f83 /qjs.c
parentae6fa8d3d204590ce3647ad847e8e310e662898f (diff)
downloadquickjs-636c946531c3c1e1c113b509b06a84a973b591a1.tar.gz
quickjs-636c946531c3c1e1c113b509b06a84a973b591a1.zip
FreeBSD QuickJS Patch (#203)
Diffstat (limited to 'qjs.c')
-rw-r--r--qjs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qjs.c b/qjs.c
index bcee957..0332895 100644
--- a/qjs.c
+++ b/qjs.c
@@ -36,6 +36,8 @@
#include <malloc/malloc.h>
#elif defined(__linux__)
#include <malloc.h>
+#elif defined(__FreeBSD__)
+#include <malloc_np.h>
#endif
#include "cutils.h"