* [Qemu-devel] [PATCH] Fix build on FreeBSD
@ 2011-05-31 14:57 Nathan Whitehorn
2011-06-02 15:01 ` Andreas Färber
0 siblings, 1 reply; 7+ messages in thread
From: Nathan Whitehorn @ 2011-05-31 14:57 UTC (permalink / raw)
To: qemu-devel
Add some includes required to build qemu on FreeBSD.
---
bsd-user/syscall.c | 2 ++
iohandler.c | 1 +
os-posix.c | 4 ++++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index eb1cdf2..7b49f54 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -212,9 +212,11 @@ static int sysctl_oldcvt(void *holdp, size_t
holdlen, uint3
2_t kind)
*(uint64_t *)holdp = tswap64(*(unsigned long *)holdp);
break;
#endif
+#ifdef CTLTYPE_QUAD
case CTLTYPE_QUAD:
*(uint64_t *)holdp = tswap64(*(uint64_t *)holdp);
break;
+#endif
case CTLTYPE_STRING:
break;
default:
diff --git a/iohandler.c b/iohandler.c
index 2b82421..7266aca 100644
--- a/iohandler.c
+++ b/iohandler.c
@@ -29,6 +29,7 @@
#ifndef _WIN32
#include <sys/wait.h>
+#include <signal.h>
#endif
typedef struct IOHandlerRecord {
diff --git a/os-posix.c b/os-posix.c
index 3204197..13b7229 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -44,6 +44,10 @@
#include <sys/syscall.h>
#endif
+#ifdef CONFIG_BSD
+#include <sys/sysctl.h>
+#endif
+
#ifdef CONFIG_EVENTFD
#include <sys/eventfd.h>
#endif
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix build on FreeBSD
2011-05-31 14:57 [Qemu-devel] [PATCH] Fix build on FreeBSD Nathan Whitehorn
@ 2011-06-02 15:01 ` Andreas Färber
2011-06-05 14:03 ` Nathan Whitehorn
0 siblings, 1 reply; 7+ messages in thread
From: Andreas Färber @ 2011-06-02 15:01 UTC (permalink / raw)
To: Nathan Whitehorn; +Cc: Alexandre Raymond, QEMU Developers
Am 31.05.2011 um 16:57 schrieb Nathan Whitehorn:
> Add some includes required to build qemu on FreeBSD.
Missing Sob.
> ---
> bsd-user/syscall.c | 2 ++
> iohandler.c | 1 +
> os-posix.c | 4 ++++
> 3 files changed, 7 insertions(+), 0 deletions(-)
[...]
> diff --git a/iohandler.c b/iohandler.c
> index 2b82421..7266aca 100644
> --- a/iohandler.c
> +++ b/iohandler.c
> @@ -29,6 +29,7 @@
>
> #ifndef _WIN32
> #include <sys/wait.h>
> +#include <signal.h>
> #endif
>
> typedef struct IOHandlerRecord {
This is independent of the other BSD issues (that I cannot judge) and
affects Darwin and Haiku as well. Did you check that with your patch
Win32 does not need the header?
Alexandre (cc'ed) posted a slightly different patch, adding it in qemu-
common.h instead.
Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix build on FreeBSD
2011-06-02 15:01 ` Andreas Färber
@ 2011-06-05 14:03 ` Nathan Whitehorn
2011-06-07 15:27 ` Alexandre Raymond
0 siblings, 1 reply; 7+ messages in thread
From: Nathan Whitehorn @ 2011-06-05 14:03 UTC (permalink / raw)
To: Andreas Färber; +Cc: Alexandre Raymond, QEMU Developers
On 06/02/11 10:01, Andreas Färber wrote:
> Am 31.05.2011 um 16:57 schrieb Nathan Whitehorn:
>
>> Add some includes required to build qemu on FreeBSD.
>
> Missing Sob.
Oops, I'll resubmit.
>> ---
>> bsd-user/syscall.c | 2 ++
>> iohandler.c | 1 +
>> os-posix.c | 4 ++++
>> 3 files changed, 7 insertions(+), 0 deletions(-)
> [...]
>> diff --git a/iohandler.c b/iohandler.c
>> index 2b82421..7266aca 100644
>> --- a/iohandler.c
>> +++ b/iohandler.c
>> @@ -29,6 +29,7 @@
>>
>> #ifndef _WIN32
>> #include <sys/wait.h>
>> +#include <signal.h>
>> #endif
>>
>> typedef struct IOHandlerRecord {
>
> This is independent of the other BSD issues (that I cannot judge) and
> affects Darwin and Haiku as well. Did you check that with your patch
> Win32 does not need the header?
>
> Alexandre (cc'ed) posted a slightly different patch, adding it in
> qemu-common.h instead.
Ah, that's fine then. I have no idea about Win32, I just know it won't
compile on FreeBSD without it, since it hasn't been included yet as a
side effect.
-Nathan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix build on FreeBSD
2011-06-05 14:03 ` Nathan Whitehorn
@ 2011-06-07 15:27 ` Alexandre Raymond
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Raymond @ 2011-06-07 15:27 UTC (permalink / raw)
To: Nathan Whitehorn; +Cc: Andreas Färber, QEMU Developers
Hi Nathan,
On Sun, Jun 5, 2011 at 10:03 AM, Nathan Whitehorn
<nwhitehorn@freebsd.org> wrote:
> On 06/02/11 10:01, Andreas Färber wrote:
>>
>> Am 31.05.2011 um 16:57 schrieb Nathan Whitehorn:
>>
>>> Add some includes required to build qemu on FreeBSD.
>>
>> Missing Sob.
>
> Oops, I'll resubmit.
>
>>> ---
>>> bsd-user/syscall.c | 2 ++
>>> iohandler.c | 1 +
>>> os-posix.c | 4 ++++
>>> 3 files changed, 7 insertions(+), 0 deletions(-)
>>
>> [...]
>>>
>>> diff --git a/iohandler.c b/iohandler.c
>>> index 2b82421..7266aca 100644
>>> --- a/iohandler.c
>>> +++ b/iohandler.c
>>> @@ -29,6 +29,7 @@
>>>
>>> #ifndef _WIN32
>>> #include <sys/wait.h>
>>> +#include <signal.h>
>>> #endif
>>>
>>> typedef struct IOHandlerRecord {
>>
>> This is independent of the other BSD issues (that I cannot judge) and
>> affects Darwin and Haiku as well. Did you check that with your patch Win32
>> does not need the header?
>>
>> Alexandre (cc'ed) posted a slightly different patch, adding it in
>> qemu-common.h instead.
Normally, the following patch should solve this particular missing
header. It's already been added to the trivial patches queue by
Stefan.
http://patchwork.ozlabs.org/patch/98325/
Alexandre
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] [PATCH] Fix build on FreeBSD
@ 2012-03-03 16:34 Nathan Whitehorn
2012-03-17 16:20 ` Blue Swirl
0 siblings, 1 reply; 7+ messages in thread
From: Nathan Whitehorn @ 2012-03-03 16:34 UTC (permalink / raw)
To: QEMU Developers
Fix a missing header required to build on recent FreeBSD.
Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
---
os-posix.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/os-posix.c b/os-posix.c
index dbf3b24..83b14a0 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -45,6 +45,10 @@
#include <sys/syscall.h>
#endif
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
#ifdef CONFIG_EVENTFD
#include <sys/eventfd.h>
#endif
--
1.7.9
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix build on FreeBSD
2012-03-03 16:34 Nathan Whitehorn
@ 2012-03-17 16:20 ` Blue Swirl
2012-03-17 21:55 ` Nathan Whitehorn
0 siblings, 1 reply; 7+ messages in thread
From: Blue Swirl @ 2012-03-17 16:20 UTC (permalink / raw)
To: Nathan Whitehorn; +Cc: QEMU Developers
On Sat, Mar 3, 2012 at 16:34, Nathan Whitehorn <nwhitehorn@freebsd.org> wrote:
> Fix a missing header required to build on recent FreeBSD.
>
> Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
> ---
> os-posix.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/os-posix.c b/os-posix.c
> index dbf3b24..83b14a0 100644
> --- a/os-posix.c
> +++ b/os-posix.c
> @@ -45,6 +45,10 @@
> #include <sys/syscall.h>
> #endif
These and the below CONFIG_EVENTFD stuff does not exist in QEMU git
head. Please rebase.
>
> +#ifdef __FreeBSD__
> +#include <sys/sysctl.h>
> +#endif
> +
> #ifdef CONFIG_EVENTFD
> #include <sys/eventfd.h>
> #endif
> --
> 1.7.9
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix build on FreeBSD
2012-03-17 16:20 ` Blue Swirl
@ 2012-03-17 21:55 ` Nathan Whitehorn
0 siblings, 0 replies; 7+ messages in thread
From: Nathan Whitehorn @ 2012-03-17 21:55 UTC (permalink / raw)
To: Blue Swirl; +Cc: QEMU Developers
On Mar 17, 2012, at 11:20 AM, Blue Swirl wrote:
> On Sat, Mar 3, 2012 at 16:34, Nathan Whitehorn
> <nwhitehorn@freebsd.org> wrote:
>> Fix a missing header required to build on recent FreeBSD.
>>
>> Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
>> ---
>> os-posix.c | 4 ++++
>> 1 files changed, 4 insertions(+), 0 deletions(-)
>>
>> diff --git a/os-posix.c b/os-posix.c
>> index dbf3b24..83b14a0 100644
>> --- a/os-posix.c
>> +++ b/os-posix.c
>> @@ -45,6 +45,10 @@
>> #include <sys/syscall.h>
>> #endif
>
> These and the below CONFIG_EVENTFD stuff does not exist in QEMU git
> head. Please rebase.
Thanks, I'll prepare a new patch. Incidentally, the build has also
been broken by the addition of qmp_guest_network_get_interfaces(),
which depends on the Linux-only ioctl SIOCGIFHWADDR.
-Nathan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-03-17 21:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 14:57 [Qemu-devel] [PATCH] Fix build on FreeBSD Nathan Whitehorn
2011-06-02 15:01 ` Andreas Färber
2011-06-05 14:03 ` Nathan Whitehorn
2011-06-07 15:27 ` Alexandre Raymond
-- strict thread matches above, loose matches on Subject: below --
2012-03-03 16:34 Nathan Whitehorn
2012-03-17 16:20 ` Blue Swirl
2012-03-17 21:55 ` Nathan Whitehorn
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).