summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-z3b-bsd-user-8fix
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/patch-z3b-bsd-user-8fix')
-rw-r--r--emulators/qemu-devel/files/patch-z3b-bsd-user-8fix34
1 files changed, 34 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-z3b-bsd-user-8fix b/emulators/qemu-devel/files/patch-z3b-bsd-user-8fix
new file mode 100644
index 000000000000..7a4de89f5a5b
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-z3b-bsd-user-8fix
@@ -0,0 +1,34 @@
+--- a/bsd-user/syscall.c
++++ b/bsd-user/syscall.c
+@@ -3890,6 +3890,7 @@ do_stat:
+ break;
+ #endif
+
++#if defined(__FreeBSD_version) && __FreeBSD_version > 900000
+ case TARGET_FREEBSD_NR_pdkill:
+ ret = get_errno(pdkill(arg1, target_to_host_signal(arg2)));
+ break;
+@@ -3903,6 +3904,7 @@ do_stat:
+ goto efault;
+ }
+ break;
++#endif
+
+ case TARGET_FREEBSD_NR_sigaction:
+ {
+@@ -4176,6 +4178,7 @@ do_stat:
+ break;
+ #endif
+
++#if defined(__FreeBSD_version) && __FreeBSD_version > 900000
+ case TARGET_FREEBSD_NR_posix_fallocate:
+ {
+ off_t offset = arg2, len = arg3;
+@@ -4192,6 +4195,7 @@ do_stat:
+ ret = get_errno(posix_fallocate(arg1, offset, len));
+ }
+ break;
++#endif
+
+ #ifdef TARGET_FREEBSD_posix_openpt
+ case TARGET_FREEBSD_posix_openpt: