aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2015-01-28 05:33:13 +0800
committernox <nox@FreeBSD.org>2015-01-28 05:33:13 +0800
commit856f2a10d3905aab6d304c5382dc05dc79d6d9ba (patch)
tree123d98f7024a931bc837666b504fdc1468d9e766 /emulators
parent9b831943091236a2552de36f6d7bc46201f82d13 (diff)
downloadfreebsd-ports-gnome-856f2a10d3905aab6d304c5382dc05dc79d6d9ba.tar.gz
freebsd-ports-gnome-856f2a10d3905aab6d304c5382dc05dc79d6d9ba.tar.zst
freebsd-ports-gnome-856f2a10d3905aab6d304c5382dc05dc79d6d9ba.zip
Fix bsd-user build on older head that doesn't have the reaper stuff yet.
PR: 197134 Submitted by: amdmi3
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu-sbruno/files/patch-bsd-user-freebsd-os-proc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/qemu-sbruno/files/patch-bsd-user-freebsd-os-proc.c b/emulators/qemu-sbruno/files/patch-bsd-user-freebsd-os-proc.c
new file mode 100644
index 000000000000..7c29adc0d804
--- /dev/null
+++ b/emulators/qemu-sbruno/files/patch-bsd-user-freebsd-os-proc.c
@@ -0,0 +1,11 @@
+--- a/bsd-user/freebsd/os-proc.c
++++ b/bsd-user/freebsd/os-proc.c
+@@ -364,7 +364,7 @@ execve_end:
+ #error __FreeBSD_version not defined!
+ #endif
+
+-#if defined(__FreeBSD_version) && __FreeBSD_version >= 1100000
++#if defined(__FreeBSD_version) && __FreeBSD_version >= 1100000 && defined(PROC_REAP_ACQUIRE)
+
+ #include <sys/procctl.h>
+