]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: always replace g_fsync usage with our wrapper
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 6 Jan 2020 11:42:17 +0000 (11:42 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 Jan 2020 14:42:26 +0000 (14:42 +0000)
commit14c136443caf455498b9bf584fad0d49c2496b1d
tree893ece04f493deb5f571b54088d718c1b336187c
parent97c7f3ead4930ae85c365b1753c2676b2da71b4d
util: always replace g_fsync usage with our wrapper

g_fsync was introduced in 2.63 which is newer than our minimum
glib version. A future commit will introduce compile time
checking of API versions to prevent accidental usage of APIs
from glib newer than our min declared.

To avoid triggering this warning, however, we need to ensure
that we always use our wrapper function via glibcompat.c,
which will disable the API version warnings.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/glibcompat.c
src/util/glibcompat.h