From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <Laurent.Vivier@bull.net>,
chenqing <chenqing@nsfocus.com>
Subject: Re: [Qemu-devel] [PATCH v2] Fix compilation of nbd on Windows
Date: Sun, 03 Aug 2008 12:11:40 -0500 [thread overview]
Message-ID: <4895E6CC.6040906@codemonkey.ws> (raw)
In-Reply-To: <alpine.DEB.1.00.0808022114340.9611@pacific.mpi-cbg.de.mpi-cbg.de>
Johannes Schindelin wrote:
> This still only supports the client side, and only the TCP version of
> it, since Windows does not have Unix sockets.
>
This patch fixes the build of qemu-nbd but breaks the build of qemu for
win32.
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
>
> diff --git a/qemu_socket.h b/qemu_socket.h
> index 5229c24..73e05d8 100644
> --- a/qemu_socket.h
> +++ b/qemu_socket.h
> @@ -10,9 +10,27 @@
>
> #define socket_error() WSAGetLastError()
> #undef EINTR
> +#undef EINVAL
> #define EWOULDBLOCK WSAEWOULDBLOCK
> #define EINTR WSAEINTR
> #define EINPROGRESS WSAEINPROGRESS
> +#define EINVAL WSAEINVAL
> +
> +static inline int inet_aton(const char *cp, struct in_addr *inp)
> +{
> + unsigned long result = inet_addr(cp);
> + if (result == INADDR_NONE)
> + return 0;
> + inp->s_addr = result;
> + return 1;
> +}
>
This bit conflicts with:
> #include <winsock2.h>
> int inet_aton(const char *cp, struct in_addr *ia);
> #endif
This definition in vl.c
Regards,
Anthony Liguori
next prev parent reply other threads:[~2008-08-03 17:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 13:41 [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier Thiemo Seufer
2008-07-04 1:33 ` chenqing
2008-07-04 2:34 ` Thiemo Seufer
2008-07-04 3:51 ` chenqing
2008-07-04 8:42 ` Laurent Vivier
2008-07-04 20:32 ` Thiemo Seufer
2008-07-04 20:52 ` Johannes Schindelin
2008-07-04 22:02 ` [Qemu-devel] [PATCH] Fix compilation of nbd on Windows Johannes Schindelin
2008-07-05 11:58 ` Filip Navara
2008-07-05 22:41 ` Jamie Lokier
2008-07-06 1:51 ` Johannes Schindelin
2008-07-06 16:49 ` Jamie Lokier
2008-07-06 17:23 ` Johannes Schindelin
2008-07-08 19:22 ` Anthony Liguori
2008-07-09 0:14 ` Johannes Schindelin
2008-07-18 14:24 ` [Qemu-devel] " Sebastian Herbszt
2008-07-18 15:26 ` Johannes Schindelin
2008-08-02 19:21 ` [Qemu-devel] [PATCH v2] " Johannes Schindelin
2008-08-03 17:11 ` Anthony Liguori [this message]
2008-08-03 17:32 ` Johannes Schindelin
2008-08-03 20:42 ` Anthony Liguori
2008-08-03 20:58 ` Johannes Schindelin
2008-08-03 21:09 ` Anthony Liguori
2008-08-03 21:30 ` Johannes Schindelin
2008-08-04 13:29 ` Jamie Lokier
2008-08-04 16:49 ` Thiemo Seufer
2008-08-03 21:21 ` Anthony Liguori
2008-08-03 21:37 ` Johannes Schindelin
2008-08-04 13:23 ` Jamie Lokier
2008-08-03 21:57 ` Andreas Färber
2008-07-04 8:01 ` [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4895E6CC.6040906@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=Laurent.Vivier@bull.net \
--cc=chenqing@nsfocus.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).