From d691f66983c0b36689400e9e9137d72bd3be8e72 Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 24 Mar 2003 21:58:34 +0000 Subject: glibc2.2 fixes - more command line options - misc doc fixes git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@46 c046a42c-6fe2-441c-8c8c-71466251a162 --- exec-i386.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exec-i386.c') 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); -- cgit v1.2.3