[PATCH 05/23] src: always pull in glib/gstdio.h header

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

 



The gstdio.h header defines some low level wrappers for
things like fsync, stat, lstat, etc.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/internal.h        | 4 +---
 src/util/glibcompat.h | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/internal.h b/src/internal.h
index 780f425d2c..686b7cfcc2 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -28,7 +28,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <glib.h>
+#include "glibcompat.h"
 
 #if STATIC_ANALYSIS
 # undef NDEBUG /* Don't let a prior NDEBUG definition cause trouble.  */
@@ -63,8 +63,6 @@
 #include "libvirt/libvirt-admin.h"
 #include "libvirt/virterror.h"
 
-#include "glibcompat.h"
-
 /* Merely casting to (void) is not sufficient since the
  * introduction of the "warn_unused_result" attribute
  */
diff --git a/src/util/glibcompat.h b/src/util/glibcompat.h
index 9c5fef09bf..2bbbe57612 100644
--- a/src/util/glibcompat.h
+++ b/src/util/glibcompat.h
@@ -19,6 +19,7 @@
 #pragma once
 
 #include <glib.h>
+#include <glib/gstdio.h>
 
 char *vir_g_strdup_printf(const char *msg, ...)
     G_GNUC_PRINTF(1, 2);
-- 
2.24.1

--
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]

  Powered by Linux