From 4eed65abec1de82200ac25e88d9a214c6321938b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 24 Dec 2019 15:25:40 +0000 Subject: [PATCH] src: always pull in glib/gstdio.h header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gstdio.h header defines some low level wrappers for things like fsync, stat, lstat, etc. Reviewed-by: Fabiano FidĂȘncio Signed-off-by: Daniel P. BerrangĂ© --- 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 #include #include -#include +#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 +#include char *vir_g_strdup_printf(const char *msg, ...) G_GNUC_PRINTF(1, 2);