]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src: always pull in glib/gstdio.h header
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 Dec 2019 15:25:40 +0000 (15:25 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:12 +0000 (15:42 +0000)
The gstdio.h header defines some low level wrappers for
things like fsync, stat, lstat, etc.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/internal.h
src/util/glibcompat.h

index 780f425d2cb7711420b11c0feadaa3ad6a05af04..686b7cfcc25e9cefe5caa42c06a4ca2a763f2e20 100644 (file)
@@ -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
  */
index 9c5fef09bf059d5228ac47b3d719313bd283f875..2bbbe57612e6964fa00b224f122ab8898621fe76 100644 (file)
@@ -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);