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

* Re: [Qemu-devel] [PATCH] Include futex.h properly.
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Anthony Liguori @ 2008-06-03 18:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Felipe Contreras, Paul Brook

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) \
>   

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

* Re: [Qemu-devel] [PATCH] Include futex.h properly.
  2008-06-03 18:48 ` Anthony Liguori
@ 2008-06-03 19:14   ` Paul Brook
  2008-06-03 21:04   ` Felipe Contreras
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Brook @ 2008-06-03 19:14 UTC (permalink / raw)
  To: qemu-devel; +Cc: Felipe Contreras

> > -#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?

sys/futex.h was a typo made when pulling this change out of a larger patch. I 
built it to check that it "worked", but didn't check that the configure check 
actually passed.

Paul

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

* Re: [Qemu-devel] [PATCH] Include futex.h properly.
  2008-06-03 18:48 ` Anthony Liguori
  2008-06-03 19:14   ` Paul Brook
@ 2008-06-03 21:04   ` Felipe Contreras
  1 sibling, 0 replies; 4+ messages in thread
From: Felipe Contreras @ 2008-06-03 21:04 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Paul Brook

On Tue, Jun 3, 2008 at 9:48 PM, Anthony Liguori <anthony@codemonkey.ws> wrote:
> 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?

According to Google it's from dietlibc.

-- 
Felipe Contreras

^ permalink raw reply	[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).