pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-cffi/patches
Module Name: pkgsrc
Committed By: christos
Date: Thu Sep 22 02:59:36 UTC 2016
Added Files:
pkgsrc/devel/py-cffi/patches: patch-c_malloc__closure.h
Log Message:
Handle PaX/MPROTECT
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-cffi/patches/patch-c_malloc__closure.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-cffi/patches/patch-c_malloc__closure.h
diff -u /dev/null pkgsrc/devel/py-cffi/patches/patch-c_malloc__closure.h:1.1
--- /dev/null Wed Sep 21 22:59:36 2016
+++ pkgsrc/devel/py-cffi/patches/patch-c_malloc__closure.h Wed Sep 21 22:59:36 2016
@@ -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
Home |
Main Index |
Thread Index |
Old Index