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);