From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEb8T-0007kq-KU for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:34:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEb8R-0007ja-5Q for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:34:56 -0400 Received: from [199.232.76.173] (port=49159 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEb8R-0007jN-0s for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:34:55 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:38885) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEb8Q-0007O7-Lp for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:34:54 -0400 Date: Fri, 4 Jul 2008 03:34:51 +0100 From: Thiemo Seufer Subject: Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier. Message-ID: <20080704023451.GO7007@networkno.de> References: <20080704092849.5BC0.20F538E7@nsfocus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080704092849.5BC0.20F538E7@nsfocus.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: chenqing@nsfocus.com, qemu-devel@nongnu.org chenqing wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > Maybe you should wrap these with "#ifndef _WIN32", I get an error on windows: > > 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 Hm, how much of nbd.c works on windows? Thiemo