mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 09:01:02 +00:00
test-bus-marshal.c: do not call g_type_init() for modern glib versions
This commit is contained in:
@@ -96,7 +96,9 @@ int main(int argc, char *argv[]) {
|
||||
GDBusMessage *g;
|
||||
char *p;
|
||||
|
||||
#if !defined(GLIB_VERSION_2_36)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
g = g_dbus_message_new_from_blob(buffer, sz, 0, NULL);
|
||||
p = g_dbus_message_print(g, 0);
|
||||
|
||||
Reference in New Issue
Block a user