summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2016-09-22 02:59:36 +0000
committerchristos <christos@pkgsrc.org>2016-09-22 02:59:36 +0000
commit832d3fcf9c3d6d1a1e4351b5b017a91f3c29ac88 (patch)
tree5afb100eaaf52db6bc29d48675f82990c04290eb
parent759616dbd037a56b69be5324c94d73d0c95ea099 (diff)
downloadpkgsrc-832d3fcf9c3d6d1a1e4351b5b017a91f3c29ac88.tar.gz
Handle PaX/MPROTECT
-rw-r--r--devel/py-cffi/patches/patch-c_malloc__closure.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/py-cffi/patches/patch-c_malloc__closure.h b/devel/py-cffi/patches/patch-c_malloc__closure.h
new file mode 100644
index 00000000000..22c2866aaff
--- /dev/null
+++ b/devel/py-cffi/patches/patch-c_malloc__closure.h
@@ -0,0 +1,15 @@
+$ NetBSD$
+
+Handle PaX/MPROTECT
+
+--- c/malloc_closure.h.orig 2016-09-21 22:53:05.889258675 -0400
++++ c/malloc_closure.h 2016-09-21 22:53:47.057812777 -0400
+@@ -57,6 +57,8 @@
+
+ #define is_emutramp_enabled() (emutramp_enabled >= 0 ? emutramp_enabled \
+ : (emutramp_enabled = emutramp_enabled_check ()))
++#elif defined(__NetBSD__)
++#define is_emutramp_enabled() 1 /* We have PaX MPROTECT, no point in checking if it is enabled! */
+ #else
+ #define is_emutramp_enabled() 0
+ #endif