aboutsummaryrefslogtreecommitdiff
path: root/exec-i386.c
diff options
context:
space:
mode:
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);