From 5e54302d1eef1d05fd5c07f512f22cf1a5a67bd2 Mon Sep 17 00:00:00 2001 From: bellard Date: Tue, 16 Sep 2003 21:46:04 +0000 Subject: [PATCH] glibc 2.3.x fix --- vl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index d517eeebe5..94d919643f 100644 --- a/vl.c +++ b/vl.c @@ -3247,7 +3247,6 @@ int main_loop(void *opaque) } for(;;) { - ret = cpu_x86_exec(env); if (reset_requested) break; @@ -3648,8 +3647,13 @@ int main(int argc, char **argv) } else { #ifdef CONFIG_SDL sdl_display_init(ds); - /* the pthreads modify sigaction. We don't want that. */ + /* SDL use the pthreads and they modify sigaction. We don't + want that. */ +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) +#define sigaction __libc_sigaction +#else #define sigaction __sigaction +#endif #else dumb_display_init(ds); #endif -- 2.11.4.GIT