Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEad2-0000Jr-Nn for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:02:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEacy-0000HY-6Q for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:02:28 -0400 Received: from [199.232.76.173] (port=45742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEacy-0000HS-2Y for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:02:24 -0400 Received: from [211.151.49.206] (port=34607 helo=nsfocus.com) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KEacx-0002PC-8A for qemu-devel@nongnu.org; Thu, 03 Jul 2008 22:02:24 -0400 Date: Fri, 04 Jul 2008 09:33:33 +0800 From: chenqing Subject: Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier. Sender: chenqing@nsfocus.com In-Reply-To: References: Message-Id: <20080704092849.5BC0.20F538E7@nsfocus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Reply-To: chenqing@nsfocus.com, 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 > +#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