aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ccl
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
committerjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
commite8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e (patch)
tree75b44b9298bfa34f3123fa4b2064042302608491 /lang/ccl
parent7a11983187598adbbcc47f1e58f14eb473db899b (diff)
downloadfreebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.gz
freebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.zst
freebsd-ports-gnome-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.zip
The MAP_NORESERVE flag to mmap() has never been implemented in FreeBSD and
is being removed. No portrev bump needed since the kernel will continue to accept this flag for old binaries even after support for it in new binaries is removed. PR: 193961 Approved by: portmgr (antoine)
Diffstat (limited to 'lang/ccl')
-rw-r--r--lang/ccl/files/patch-lisp-kernel_memory.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/ccl/files/patch-lisp-kernel_memory.c b/lang/ccl/files/patch-lisp-kernel_memory.c
new file mode 100644
index 000000000000..24dffad467b9
--- /dev/null
+++ b/lang/ccl/files/patch-lisp-kernel_memory.c
@@ -0,0 +1,29 @@
+--- lisp-kernel/memory.c.orig 2014-10-08 10:40:13.000000000 -0400
++++ lisp-kernel/memory.c 2014-10-08 10:41:19.000000000 -0400
+@@ -89,7 +89,7 @@ ReserveMemoryForHeap(LogicalAddress want
+ start = mmap((void *)want,
+ totalsize + heap_segment_size,
+ PROT_NONE,
+- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
++ MAP_PRIVATE | MAP_ANON,
+ -1,
+ 0);
+ if (start == MAP_FAILED) {
+@@ -99,7 +99,7 @@ ReserveMemoryForHeap(LogicalAddress want
+ if (start != want) {
+ munmap(start, totalsize+heap_segment_size);
+ start = (void *)((((natural)start)+heap_segment_size-1) & ~(heap_segment_size-1));
+- if(mmap(start, totalsize, PROT_NONE, MAP_PRIVATE | MAP_ANON | MAP_FIXED | MAP_NORESERVE, -1, 0) != start) {
++ if(mmap(start, totalsize, PROT_NONE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0) != start) {
+ return NULL;
+ }
+ }
+@@ -877,7 +877,7 @@ ReserveMemory(natural size)
+ PAGE_NOACCESS);
+ return p;
+ #else
+- p = mmap(NULL,size,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NORESERVE,-1,0);
++ p = mmap(NULL,size,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0);
+ if (p == MAP_FAILED) {
+ return NULL;
+ }