[Libguestfs] [PATCH 5/6] daemon/Win32: Don't include missing headers.

Richard W.M. Jones rjones at redhat.com
Fri Nov 20 11:38:28 UTC 2009


On Fri, Nov 20, 2009 at 12:31:50PM +0100, Jim Meyering wrote:
> Richard W.M. Jones wrote:
> > Subject: [PATCH 5/6] 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.
> > ---
> >  daemon/guestfsd.c |   18 +++++++++++++++---
> >  1 files changed, 15 insertions(+), 3 deletions(-)
> >
> > diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
> > index 9375ede..4b91660 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>
> 
> The three above are covered by gnulib.
> Just use the corresponding module and you can
> leave them included unconditionally.  The module names:
> 
>     netdb
>     sys_select
>     sys_wait

OK - I'll push this and fix it by adding the gnulib modules in
a later patch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html




More information about the Libguestfs mailing list