The gstdio.h header defines some low level wrappers for
things like fsync, stat, lstat, etc.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
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