aboutsummaryrefslogtreecommitdiffstats
path: root/main/qemu/sigev_pad.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/qemu/sigev_pad.patch')
-rw-r--r--main/qemu/sigev_pad.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/qemu/sigev_pad.patch b/main/qemu/sigev_pad.patch
new file mode 100644
index 0000000000..19f2cec099
--- /dev/null
+++ b/main/qemu/sigev_pad.patch
@@ -0,0 +1,18 @@
+--- ./linux-user/syscall_defs.h.orig
++++ ./linux-user/syscall_defs.h
+@@ -2552,12 +2552,14 @@
+ abi_ulong ptr;
+ };
+
++#define SIGEV_PAD_ARRAY_SIZE ARRAY_SIZE(((struct sigevent *)0)->__pad)
++
+ struct target_sigevent {
+ target_sigval_t sigev_value;
+ int32_t sigev_signo;
+ int32_t sigev_notify;
+ union {
+- int32_t _pad[ARRAY_SIZE(((struct sigevent *)0)->_sigev_un._pad)];
++ int32_t _pad[SIGEV_PAD_ARRAY_SIZE];
+ int32_t _tid;
+
+ struct {