qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Include futex.h properly.


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Include futex.h properly.
Date: Tue, 03 Jun 2008 13:48:44 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Felipe Contreras wrote:
This wasn't building properly on my system.
---
 configure            |    2 +-
 linux-user/syscall.c |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 4a4ba36..f204d04 100755
--- a/configure
+++ b/configure
@@ -648,7 +648,7 @@ EOF
 # Check host NPTL support
 cat > $TMPC <<EOF
 #include <sched.h>
-#include <sys/futex.h>
+#include <linux/futex.h>

I don't have a sys/futex.h on my system either. The futex man page claims that linux/futex.h should be what's included. What system is sys/futex.h valid on and does that system break with linux/futex.h?

Regards,

Anthony Liguori

 void foo()
 {
 #if !defined(CLONE_SETTLS) || !defined(FUTEX_WAIT)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5f2b48a..25b9e5a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -52,9 +52,6 @@
 //#include <sys/user.h>
 #include <netinet/ip.h>
 #include <netinet/tcp.h>
-#if defined(USE_NPTL)
-#include <sys/futex.h>
-#endif
#define termios host_termios
 #define winsize host_winsize
@@ -75,6 +72,10 @@
#include "qemu.h" +#if defined(USE_NPTL)
+#include <linux/futex.h>
+#endif
+
 //#define DEBUG
#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_SPARC) \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]