diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c index 1fc3c090e..bfc46f096 100644 --- a/gio/gdbusmessage.c +++ b/gio/gdbusmessage.c @@ -38,6 +38,8 @@ #include "gioerror.h" #ifdef G_OS_UNIX +#include "gunixfdlist.h" + #include #include #include diff --git a/gio/gdbusmessage.h b/gio/gdbusmessage.h index a01fb8b8a..b77440917 100644 --- a/gio/gdbusmessage.h +++ b/gio/gdbusmessage.h @@ -25,10 +25,6 @@ #include -#ifdef G_OS_UNIX -#include -#endif - G_BEGIN_DECLS #define G_TYPE_DBUS_MESSAGE (g_dbus_message_get_type ()) @@ -111,11 +107,9 @@ guchar *g_dbus_message_get_header_fields (GDBusMessage GVariant *g_dbus_message_get_body (GDBusMessage *message); void g_dbus_message_set_body (GDBusMessage *message, GVariant *body); -#ifdef G_OS_UNIX GUnixFDList *g_dbus_message_get_unix_fd_list (GDBusMessage *message); void g_dbus_message_set_unix_fd_list (GDBusMessage *message, GUnixFDList *fd_list); -#endif guint32 g_dbus_message_get_reply_serial (GDBusMessage *message); void g_dbus_message_set_reply_serial (GDBusMessage *message, diff --git a/gio/giotypes.h b/gio/giotypes.h index 22a00266c..1c635d501 100644 --- a/gio/giotypes.h +++ b/gio/giotypes.h @@ -335,6 +335,7 @@ struct _GOutputVector { typedef struct _GCredentials GCredentials; typedef struct _GUnixCredentialsMessage GUnixCredentialsMessage; +typedef struct _GUnixFDList GUnixFDList; typedef struct _GDBusMessage GDBusMessage; typedef struct _GDBusConnection GDBusConnection; typedef struct _GMessageBusConnection GMessageBusConnection; diff --git a/gio/gunixfdlist.h b/gio/gunixfdlist.h index 638b685e7..12b6ee830 100644 --- a/gio/gunixfdlist.h +++ b/gio/gunixfdlist.h @@ -23,7 +23,7 @@ #ifndef __G_UNIX_FD_LIST_H__ #define __G_UNIX_FD_LIST_H__ -#include +#include G_BEGIN_DECLS @@ -41,7 +41,6 @@ G_BEGIN_DECLS typedef struct _GUnixFDListPrivate GUnixFDListPrivate; typedef struct _GUnixFDListClass GUnixFDListClass; -typedef struct _GUnixFDList GUnixFDList; struct _GUnixFDListClass { diff --git a/gio/gunixfdmessage.c b/gio/gunixfdmessage.c index bb37d5f59..5413be3c8 100644 --- a/gio/gunixfdmessage.c +++ b/gio/gunixfdmessage.c @@ -39,6 +39,7 @@ #include #include "gunixfdmessage.h" +#include "gunixfdlist.h" #include "gioerror.h" #include "gioalias.h" diff --git a/gio/gunixfdmessage.h b/gio/gunixfdmessage.h index 44b47c119..3bfa05822 100644 --- a/gio/gunixfdmessage.h +++ b/gio/gunixfdmessage.h @@ -23,8 +23,8 @@ #ifndef __G_UNIX_FD_MESSAGE_H__ #define __G_UNIX_FD_MESSAGE_H__ -#include #include +#include G_BEGIN_DECLS diff --git a/gio/tests/gdbus-example-unix-fd-client.c b/gio/tests/gdbus-example-unix-fd-client.c index 21e199e89..500058b47 100644 --- a/gio/tests/gdbus-example-unix-fd-client.c +++ b/gio/tests/gdbus-example-unix-fd-client.c @@ -7,6 +7,7 @@ #include #include +#include /* see gdbus-example-server.c for the server implementation */ static gint diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c index 63ddc6d7f..929d5c2a1 100644 --- a/gio/tests/gdbus-peer.c +++ b/gio/tests/gdbus-peer.c @@ -30,6 +30,7 @@ #include #include +#include #include "gdbus-tests.h"