aboutsummaryrefslogtreecommitdiff
blob: adccdcc69aad1f0ec7f0828758ab53a9ffbbda0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur qemu-2.2.0.orig/linux-user/syscall.c qemu-2.2.0/linux-user/syscall.c
--- qemu-2.2.0.orig/linux-user/syscall.c	2014-12-09 15:45:43.000000000 -0100
+++ qemu-2.2.0/linux-user/syscall.c	2015-03-16 19:09:49.050386155 -0100
@@ -5033,7 +5033,7 @@
     host_sevp->sigev_signo =
         target_to_host_signal(tswap32(target_sevp->sigev_signo));
     host_sevp->sigev_notify = tswap32(target_sevp->sigev_notify);
-    host_sevp->_sigev_un._tid = tswap32(target_sevp->_sigev_un._tid);
+    ((int*)(&host_sevp->sigev_notify))[1] = tswap32(target_sevp->_sigev_un._tid);
 
     unlock_user_struct(target_sevp, target_addr, 1);
     return 0;