summaryrefslogtreecommitdiff
path: root/graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2016-11-13 23:53:07 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2016-11-13 23:53:07 +0000
commit903c637421f9a2e2b7f03963343cc57cab7dc194 (patch)
tree1c1d8d1c0555b777098062400d82745ae1cf7c06 /graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h
parentinstall correct query.sql{,.sample} (diff)
- fix build on aarch64
PR: 213864 Submitted by: Andrew Turner
Notes
Notes: svn path=/head/; revision=426075
Diffstat (limited to 'graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h')
-rw-r--r--graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h b/graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h
new file mode 100644
index 000000000000..e5cffa97b1ac
--- /dev/null
+++ b/graphics/graphviz/files/patch-lib-vmalloc-vmhdr.h
@@ -0,0 +1,13 @@
+--- lib/vmalloc/vmhdr.h.orig 2016-11-07 02:32:54.935418000 +0000
++++ lib/vmalloc/vmhdr.h 2016-11-07 02:38:16.506108000 +0000
+@@ -20,6 +20,10 @@
+ #ifndef _BLD_vmalloc
+ #define _BLD_vmalloc 1
+ #endif
++#if defined(__FreeBSD__) && defined(__aarch64__)
++/* No sbrk on FreeBSD/AArch64 */
++#define _std_malloc 1
++#endif
+ #ifdef WIN32
+ #include <io.h>
+ #endif