We already require GTK, and thus GLib; include glib.h in the main header
of p2v, so all of p2v can use GLib.
---
 p2v.h          | 2 ++
 physical-xml.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/p2v.h b/p2v.h
index eb518f7..adace84 100644
--- a/p2v.h
+++ b/p2v.h
@@ -18,6 +18,8 @@
 #ifndef P2V_H
 #define P2V_H
 
+#include <glib.h>
+
 #include <stdio.h>
 #include <stdbool.h>
 
diff --git a/physical-xml.c b/physical-xml.c
index 1855190..93cdaa0 100644
--- a/physical-xml.c
+++ b/physical-xml.c
@@ -34,8 +34,6 @@
 
 #include <libxml/xmlwriter.h>
 
-#include <glib.h>
-
 #include "getprogname.h"
 
 #include "libxml2-writer-macros.h"
-- 
2.21.0

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to