summaryrefslogtreecommitdiff
path: root/www/c-icap/patches/patch-os_unix_shared_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/c-icap/patches/patch-os_unix_shared_mem.c')
-rw-r--r--www/c-icap/patches/patch-os_unix_shared_mem.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/c-icap/patches/patch-os_unix_shared_mem.c b/www/c-icap/patches/patch-os_unix_shared_mem.c
new file mode 100644
index 00000000000..4253007ad6a
--- /dev/null
+++ b/www/c-icap/patches/patch-os_unix_shared_mem.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-os_unix_shared_mem.c,v 1.1 2017/04/24 14:35:01 sborrill Exp $
+
+Support MAP_ANON as a synonym of MAP_ANONYMOUS
+
+--- /pkg_comp/obj/pkgsrc/www/c-icap/default/c_icap-0.4.4/os/unix/shared_mem.c.orig 2017-04-24 14:00:54.000000000 +0000
++++ /pkg_comp/obj/pkgsrc/www/c-icap/default/c_icap-0.4.4/os/unix/shared_mem.c 2017-04-24 14:00:57.000000000 +0000
+@@ -29,6 +29,9 @@
+ #endif
+ #if defined(USE_POSIX_MAPPED_FILES)
+ #include <sys/mman.h>
++#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
++#define MAP_ANONYMOUS MAP_ANON
++#endif
+ #endif
+ #include <fcntl.h>
+ #include <errno.h>