aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-12-27 01:41:07 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-12-27 01:41:07 +0800
commite623f1eab624c507fcf32c313f45d253a7ed83f0 (patch)
tree6890ea646ca5d257a0ab125156239c66c15cf8ef /games
parentbce05b42f2dd86a75611b0a2ca97a086c09a651e (diff)
downloadfreebsd-ports-gnome-e623f1eab624c507fcf32c313f45d253a7ed83f0.tar.gz
freebsd-ports-gnome-e623f1eab624c507fcf32c313f45d253a7ed83f0.tar.zst
freebsd-ports-gnome-e623f1eab624c507fcf32c313f45d253a7ed83f0.zip
- Add forgotten patch
Diffstat (limited to 'games')
-rw-r--r--games/warzone2100/files/patch-lib-exceptionhandler-exceptionhandler.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/games/warzone2100/files/patch-lib-exceptionhandler-exceptionhandler.c b/games/warzone2100/files/patch-lib-exceptionhandler-exceptionhandler.c
new file mode 100644
index 000000000000..6d8638548160
--- /dev/null
+++ b/games/warzone2100/files/patch-lib-exceptionhandler-exceptionhandler.c
@@ -0,0 +1,23 @@
+--- lib/exceptionhandler/exceptionhandler.c.orig 2010-11-28 22:39:00.000000000 +0300
++++ lib/exceptionhandler/exceptionhandler.c 2010-12-22 20:00:57.000000000 +0300
+@@ -122,10 +122,6 @@
+ # include <sys/stat.h>
+ # include <sys/wait.h>
+ # include <sys/utsname.h>
+-# include <sys/prctl.h>
+-#ifndef PR_SET_PTRACER
+-# define PR_SET_PTRACER 0x59616d61 // prctl will ignore unknown options
+-#endif
+
+ // GNU extension for backtrace():
+ # if defined(__GLIBC__)
+@@ -492,9 +488,6 @@
+ // Check to see if we're the parent
+ if (pid != 0)
+ {
+- // Allow tracing the process, some hardened kernel configurations disallow this.
+- prctl(PR_SET_PTRACER, pid, 0, 0, 0);
+-
+ // Return the write end of the pipe
+ *gdbWritePipe = gdbPipe[1];
+