src: always pull in glib/gstdio.h header

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>
This commit is contained in:
Daniel P. Berrangé 2019-12-24 15:25:40 +00:00
parent 0e09706844
commit 4eed65abec
2 changed files with 2 additions and 3 deletions

View 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
*/

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