diff --git a/src/util/glibcompat.c b/src/util/glibcompat.c index 4ebefb4478ae7c376b74ed4214ee9c80567ec1d9..9fba54cb79717661d9b968858821729325e2e0e1 100644 --- a/src/util/glibcompat.c +++ b/src/util/glibcompat.c @@ -55,6 +55,7 @@ vir_g_strdup_vprintf(const char *msg, va_list args) } +/* Drop when min glib >= 2.63.0 */ gint vir_g_fsync(gint fd) { diff --git a/src/util/glibcompat.h b/src/util/glibcompat.h index d6b83f4b93093c15c8faeeaf89bec6a333aad86d..7878ad24ed16b237581e10dbf0431f28bbb0cacd 100644 --- a/src/util/glibcompat.h +++ b/src/util/glibcompat.h @@ -32,6 +32,5 @@ gint vir_g_fsync(gint fd); # define g_strdup_vprintf vir_g_strdup_vprintf #endif -#if !GLIB_CHECK_VERSION(2, 63, 0) -# define g_fsync vir_g_fsync -#endif +#undef g_fsync +#define g_fsync vir_g_fsync