[glib: 6/11] gio/gdbusserver: add "unix:" address support on !unix
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/11] gio/gdbusserver: add "unix:" address support on !unix
- Date: Wed, 18 May 2022 14:01:44 +0000 (UTC)
commit e34795b43136824339361866db85737aac3b1893
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Thu Apr 7 23:54:24 2022 +0400
gio/gdbusserver: add "unix:" address support on !unix
This is another minor left-over after GNOME/glib!2445.
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
gio/gdbusserver.c | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c
index 3034c8f861..a45bac8430 100644
--- a/gio/gdbusserver.c
+++ b/gio/gdbusserver.c
@@ -51,9 +51,7 @@
#include <io.h>
#endif
-#ifdef G_OS_UNIX
#include "gunixsocketaddress.h"
-#endif
#include "glibintl.h"
@@ -673,8 +671,6 @@ g_dbus_server_stop (GDBusServer *server)
/* ---------------------------------------------------------------------------------------------------- */
-#ifdef G_OS_UNIX
-
static gint
random_ascii (void)
{
@@ -823,7 +819,6 @@ try_unix (GDBusServer *server,
}
return ret;
}
-#endif
/* ---------------------------------------------------------------------------------------------------- */
@@ -1142,10 +1137,8 @@ initable_init (GInitable *initable,
if (FALSE)
{
}
-#ifdef G_OS_UNIX
else if (g_strcmp0 (transport_name, "unix") == 0)
ret = try_unix (server, address_entry, key_value_pairs, &this_error);
-#endif
else if (g_strcmp0 (transport_name, "tcp") == 0)
ret = try_tcp (server, address_entry, key_value_pairs, FALSE, &this_error);
else if (g_strcmp0 (transport_name, "nonce-tcp") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]