]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/blobdiff - exec-i386.c
glibc2.2 fixes - more command line options - misc doc fixes
[lisovros/qemu_apohw.git] / exec-i386.c
index ec14ca090191b9d791bf6333b62ae8ac15ab2654..5dbe7fa5348148715e58fc8ac7b65f91e86fdcb5 100644 (file)
@@ -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);