[Libvir] [PATCH] stats_linux.c: Only include xs.h if WITH_XEN.

Richard W.M. Jones rjones at redhat.com
Thu Nov 15 13:01:01 UTC 2007


Jim Paris wrote:
> Fixes compile error when building --without-xen on a host that has no
> Xen headers installed.
> ---
>  src/stats_linux.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/stats_linux.c b/src/stats_linux.c
> index 5e6d06c..125af45 100644
> --- a/src/stats_linux.c
> +++ b/src/stats_linux.c
> @@ -19,7 +19,9 @@
>  #include <string.h>
>  #include <unistd.h>
>  
> +#ifdef WITH_XEN
>  #include <xs.h>
> +#endif
>  
>  #include "internal.h"
>  #include "xen_unified.h"

Yes, well spotted, thanks.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071115/67d94c56/attachment-0001.bin>


More information about the libvir-list mailing list