diff options
author | jhb <jhb@FreeBSD.org> | 2014-10-18 20:20:42 +0800 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-10-18 20:20:42 +0800 |
commit | e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e (patch) | |
tree | 75b44b9298bfa34f3123fa4b2064042302608491 /devel | |
parent | 7a11983187598adbbcc47f1e58f14eb473db899b (diff) | |
download | freebsd-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 'devel')
-rw-r--r-- | devel/libunwind/files/patch-tests-mapper.c | 12 | ||||
-rw-r--r-- | devel/umem/files/patch-vmem_mmap.c | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/devel/libunwind/files/patch-tests-mapper.c b/devel/libunwind/files/patch-tests-mapper.c new file mode 100644 index 000000000000..9c122053efb1 --- /dev/null +++ b/devel/libunwind/files/patch-tests-mapper.c @@ -0,0 +1,12 @@ +--- tests/mapper.c.orig 2014-10-06 14:46:27.000000000 -0400 ++++ tests/mapper.c 2014-10-06 14:47:00.000000000 -0400 +@@ -39,6 +39,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DE + #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON) + # define MAP_ANONYMOUS MAP_ANON + #endif ++#if !defined(MAP_NORESERVE) ++# define MAP_NORESERVE 0 ++#endif + + int + main (void) diff --git a/devel/umem/files/patch-vmem_mmap.c b/devel/umem/files/patch-vmem_mmap.c new file mode 100644 index 000000000000..cbf595409995 --- /dev/null +++ b/devel/umem/files/patch-vmem_mmap.c @@ -0,0 +1,11 @@ +--- vmem_mmap.c.orig 2014-10-06 15:04:33.000000000 -0400 ++++ vmem_mmap.c 2014-10-06 15:08:36.000000000 -0400 +@@ -48,7 +48,7 @@ + #define FREE_PROT PROT_NONE + + #define ALLOC_FLAGS MAP_PRIVATE | MAP_ANON +-#define FREE_FLAGS MAP_PRIVATE | MAP_ANON | MAP_NORESERVE ++#define FREE_FLAGS MAP_PRIVATE | MAP_ANON + + #ifdef MAP_ALIGN + #define CHUNKSIZE (64*1024) /* 64 kilobytes */ |