mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-20 14:19:16 +02:00
gio: enable unix: address on win32
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
e796124b31
commit
9a9e2b5d7d
@ -40,12 +40,12 @@
|
|||||||
#include "gdbusprivate.h"
|
#include "gdbusprivate.h"
|
||||||
#include "gstdio.h"
|
#include "gstdio.h"
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <gio/gunixsocketaddress.h>
|
#include <gio/gunixsocketaddress.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -66,6 +66,9 @@
|
|||||||
*
|
*
|
||||||
* TCP D-Bus connections are supported, but accessing them via a proxy is
|
* TCP D-Bus connections are supported, but accessing them via a proxy is
|
||||||
* currently not supported.
|
* currently not supported.
|
||||||
|
*
|
||||||
|
* Since GLib 2.72, `unix:` addresses are supported on Windows with `AF_UNIX`
|
||||||
|
* support (Windows 10).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static gchar *get_session_address_platform_specific (GError **error);
|
static gchar *get_session_address_platform_specific (GError **error);
|
||||||
@ -571,11 +574,7 @@ g_dbus_address_connect (const gchar *address_entry,
|
|||||||
ret = NULL;
|
ret = NULL;
|
||||||
nonce_file = NULL;
|
nonce_file = NULL;
|
||||||
|
|
||||||
if (FALSE)
|
if (g_strcmp0 (transport_name, "unix") == 0)
|
||||||
{
|
|
||||||
}
|
|
||||||
#ifdef G_OS_UNIX
|
|
||||||
else if (g_strcmp0 (transport_name, "unix") == 0)
|
|
||||||
{
|
{
|
||||||
const gchar *path;
|
const gchar *path;
|
||||||
const gchar *abstract;
|
const gchar *abstract;
|
||||||
@ -605,7 +604,6 @@ g_dbus_address_connect (const gchar *address_entry,
|
|||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
else if (g_strcmp0 (transport_name, "tcp") == 0 || g_strcmp0 (transport_name, "nonce-tcp") == 0)
|
else if (g_strcmp0 (transport_name, "tcp") == 0 || g_strcmp0 (transport_name, "nonce-tcp") == 0)
|
||||||
{
|
{
|
||||||
const gchar *s;
|
const gchar *s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user