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

[Libguestfs] [PATCH 2/2] lib: do not manually include libvirt.h in .c files



guestfs-internal.h includes it already, so rely on that.
---
 src/handle.c         | 4 ----
 src/launch-libvirt.c | 1 -
 src/libvirt-auth.c   | 1 -
 src/libvirt-domain.c | 1 -
 4 files changed, 7 deletions(-)

diff --git a/src/handle.c b/src/handle.c
index f7b0909..15fd104 100644
--- a/src/handle.c
+++ b/src/handle.c
@@ -23,10 +23,6 @@
 #include <string.h>
 #include <libintl.h>
 
-#ifdef HAVE_LIBVIRT
-#include <libvirt/libvirt.h>
-#endif
-
 #include <libxml/parser.h>
 #include <libxml/xmlversion.h>
 
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index fae8e5d..9e108aa 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -33,7 +33,6 @@
 #include <sys/un.h>  /* sockaddr_un */
 
 #ifdef HAVE_LIBVIRT
-#include <libvirt/libvirt.h>
 #include <libvirt/virterror.h>
 #endif
 
diff --git a/src/libvirt-auth.c b/src/libvirt-auth.c
index dad61cd..cbc2461 100644
--- a/src/libvirt-auth.c
+++ b/src/libvirt-auth.c
@@ -25,7 +25,6 @@
 #include <libintl.h>
 
 #ifdef HAVE_LIBVIRT
-#include <libvirt/libvirt.h>
 #include <libvirt/virterror.h>
 #endif
 
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 124eef0..b096fb3 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -26,7 +26,6 @@
 #include <libintl.h>
 
 #ifdef HAVE_LIBVIRT
-#include <libvirt/libvirt.h>
 #include <libvirt/virterror.h>
 #endif
 
-- 
2.1.0


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