summaryrefslogtreecommitdiff
path: root/graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h
blob: 6ada9530cae11f2a0c71e9ec4527fc9eca12d836 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- lib/vmalloc/vmhdr.h.orig	2019-09-12 02:11:30 UTC
+++ lib/vmalloc/vmhdr.h
@@ -20,6 +20,10 @@ extern "C" {
 #ifndef _BLD_vmalloc
 #define _BLD_vmalloc	1
 #endif
+#if defined(__FreeBSD__) && (defined(__aarch64__) || defined(__riscv))
+/* No sbrk on FreeBSD/AArch64 or FreeBSD/RISC-V */
+#define _BLD_INSTRUMENT	1
+#endif
 #ifdef _WIN32
 #include <io.h>
 #endif