|
From: | chenqing |
Subject: | Re: [Qemu-devel] [4838] Allow QEMU to connect directly to an NBD server, by Laurent Vivier. |
Date: | Fri, 04 Jul 2008 09:33:33 +0800 |
> +#include <sys/types.h> > +#include <unistd.h> > +#include <sys/socket.h> > +#include <sys/un.h> > +#include <netinet/in.h> > +#include <arpa/inet.h> > +#include <pthread.h> 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
[Prev in Thread] | Current Thread | [Next in Thread] |