qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Include futex.h properly.
@ 2008-06-02 12:04 Felipe Contreras
  2008-06-03 18:48 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Contreras @ 2008-06-02 12:04 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Felipe Contreras

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>
 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) \
-- 
1.5.6.rc0.29.g3beb5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-03 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 12:04 [Qemu-devel] [PATCH] Include futex.h properly Felipe Contreras
2008-06-03 18:48 ` Anthony Liguori
2008-06-03 19:14   ` Paul Brook
2008-06-03 21:04   ` Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).