Skip to contentSkip to conversation

[4653] Fix location of futex.h.

Qemu-devel Paul Brook 1 participant 1 message Jun 2, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4653

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4653
Author:   pbrook
Date:     2008-06-02 15:45:44 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Fix location of futex.h.

Modified Paths:
--------------
trunk/configure
trunk/linux-user/syscall.c

Modified: trunk/configure
===================================================================

configure +1 -1
@@ -648,7 +648,7 @@
 # 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)

Modified: trunk/linux-user/syscall.c
===================================================================

linux-user/syscall.c +4 -3
@@ -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) \