From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEgFC-0004ip-TX for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:02:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEgFB-0004iV-84 for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:02:14 -0400 Received: from [199.232.76.173] (port=37100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEgFA-0004iS-UE for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:02:13 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:55071) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEgFA-0006Ou-9h for qemu-devel@nongnu.org; Fri, 04 Jul 2008 04:02:12 -0400 Subject: Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier. From: Laurent Vivier In-Reply-To: <20080704023451.GO7007@networkno.de> References: <20080704092849.5BC0.20F538E7@nsfocus.com> <20080704023451.GO7007@networkno.de> Content-Type: text/plain; charset=utf-8 Date: Fri, 04 Jul 2008 10:01:32 +0200 Message-Id: <1215158492.3802.1.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: chenqing@nsfocus.com Le vendredi 04 juillet 2008 =C3=A0 03:34 +0100, Thiemo Seufer a =C3=A9cri= t : > chenqing wrote: > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > >=20 > > Maybe you should wrap these with "#ifndef _WIN32", I get an error on = windows: > >=20 > > nbd.c:24:23: warning: sys/ioctl.h: No such file or directory > > nbd.c:27:24: warning: sys/socket.h: No such file or directory > > nbd.c:28:20: warning: sys/un.h: No such file or directory > > nbd.c:29:24: warning: netinet/in.h: No such file or directory > > nbd.c:30:25: warning: netinet/tcp.h: No such file or directory > > nbd.c:31:23: warning: arpa/inet.h: No such file or directory > > nbd.c:32:19: warning: netdb.h: No such file or directory >=20 > Hm, how much of nbd.c works on windows? Except the part of NBD client using kernel module, NBD should works (it's only networking). Regards, Laurent --=20 ------------- Laurent.Vivier@bull.net --------------- "The best way to predict the future is to invent it." - Alan Kay