[kdbus] Update kdbus interface header (commit: b620b72c9127) 14/10/16
[platform/upstream/glib.git] / gio / tests / gdbus-example-server.c
index 2c58a24..6f1123d 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 
 #ifdef G_OS_UNIX
+#include <gio/gunixfdlist.h>
 /* For STDOUT_FILENO */
 #include <unistd.h>
 #endif
@@ -139,6 +140,7 @@ handle_method_call (GDBusConnection       *connection,
           error = NULL;
           g_dbus_connection_send_message (connection,
                                           reply,
+                                          G_DBUS_SEND_MESSAGE_FLAGS_NONE,
                                           NULL, /* out_serial */
                                           &error);
           g_assert_no_error (error);
@@ -361,8 +363,6 @@ main (int argc, char *argv[])
   guint owner_id;
   GMainLoop *loop;
 
-  g_type_init ();
-
   /* We are lazy here - we don't want to manually provide
    * the introspection data structures - so we just build
    * them from XML.