diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-20 10:41:07 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-20 10:41:07 +0000 |
commit | 295a920f52911c4220dc51245f0cf9d0d2c41241 (patch) | |
tree | 76679278f0332ef15e8f1642a7089034fb623d64 /daemon | |
parent | edb9b3abc03c0a0f84b1cbd9cf5920e3c84e5c18 (diff) | |
download | libguestfs-295a920f52911c4220dc51245f0cf9d0d2c41241.tar.gz libguestfs-295a920f52911c4220dc51245f0cf9d0d2c41241.tar.xz libguestfs-295a920f52911c4220dc51245f0cf9d0d2c41241.zip |
daemon/Win32: Don't include missing headers.
This is a partial fix for code in guestfsd.c where many of these
header files are missing on Win32.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/guestfsd.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 9375ede2..4b91660d 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -27,15 +27,27 @@ #include <rpc/types.h> #include <rpc/xdr.h> #include <getopt.h> -#include <netdb.h> #include <sys/param.h> -#include <sys/select.h> #include <sys/types.h> -#include <sys/wait.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> + +#ifdef HAVE_NETDB_H +#include <netdb.h> +#endif + +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + +#ifdef HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif + +#ifdef HAVE_PRINTF_H #include <printf.h> +#endif #include "c-ctype.h" #include "ignore-value.h" |