Skip to content

Commit 4eed65a

Browse files
committed
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 <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]>
1 parent 0e09706 commit 4eed65a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/internal.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <stdio.h>
2929
#include <string.h>
3030
#include <stdlib.h>
31-
#include <glib.h>
31+
#include "glibcompat.h"
3232

3333
#if STATIC_ANALYSIS
3434
# undef NDEBUG /* Don't let a prior NDEBUG definition cause trouble. */
@@ -63,8 +63,6 @@
6363
#include "libvirt/libvirt-admin.h"
6464
#include "libvirt/virterror.h"
6565

66-
#include "glibcompat.h"
67-
6866
/* Merely casting to (void) is not sufficient since the
6967
* introduction of the "warn_unused_result" attribute
7068
*/

src/util/glibcompat.h

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#pragma once
2020

2121
#include <glib.h>
22+
#include <glib/gstdio.h>
2223

2324
char *vir_g_strdup_printf(const char *msg, ...)
2425
G_GNUC_PRINTF(1, 2);

0 commit comments

Comments
 (0)