4/22 Tidy up proxy/libvirt_proxy.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Moves the check for WITH_XEN higher so we don't needlessly compile header files when they won't be needed.

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
Index: proxy/libvirt_proxy.c
===================================================================
RCS file: /data/cvs/libvirt/proxy/libvirt_proxy.c,v
retrieving revision 1.22
diff -u -r1.22 libvirt_proxy.c
--- proxy/libvirt_proxy.c	7 Dec 2007 10:08:06 -0000	1.22
+++ proxy/libvirt_proxy.c	7 Dec 2007 10:41:22 -0000
@@ -11,6 +11,8 @@
 
 #include "config.h"
 
+#ifdef WITH_XEN
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -20,9 +22,9 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <locale.h>
+
 #include "internal.h"
 
-#ifdef WITH_XEN
 #include "proxy_internal.h"
 #include "xen_internal.h"
 #include "xend_internal.h"
@@ -839,10 +841,12 @@
 }
 
 #else /* WITHOUT_XEN */
+
 int main(void) {
     fprintf(stderr, "libvirt was compiled without Xen support\n");
     exit(1);
 }
+
 #endif /* WITH_XEN */
 
 /*

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]