aboutsummaryrefslogtreecommitdiff
path: root/exec-i386.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-24 21:58:34 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-24 21:58:34 +0000
commitd691f66983c0b36689400e9e9137d72bd3be8e72 (patch)
treebf7422162d5f435af122b0a531a7eb03c6f60424 /exec-i386.c
parent386405f78661e0a4f82087196c7b084b8c612b48 (diff)
glibc2.2 fixes - more command line options - misc doc fixesv0.1.1
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@46 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-i386.c')
-rw-r--r--exec-i386.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exec-i386.c b/exec-i386.c
index ec14ca0901..5dbe7fa534 100644
--- a/exec-i386.c
+++ b/exec-i386.c
@@ -485,6 +485,10 @@ int cpu_x86_signal_handler(int host_signum, struct siginfo *info,
unsigned long pc;
sigset_t *pold_set;
+#ifndef REG_EIP
+/* for glibc 2.1 */
+#define REG_EIP EIP
+#endif
pc = uc->uc_mcontext.gregs[EIP];
pold_set = &uc->uc_sigmask;
return handle_cpu_signal(pc, pold_set);