mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
gio: compile GSocketAddress with AF_UNIX on all platforms
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
3308cfb020
commit
37cab227fd
@ -35,8 +35,10 @@
|
|||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
#include "gioenumtypes.h"
|
#include "gioenumtypes.h"
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
|
||||||
#include "gunixsocketaddress.h"
|
#include "gunixsocketaddress.h"
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include "giowin32-afunix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -265,7 +267,6 @@ g_socket_address_new_from_native (gpointer native,
|
|||||||
return sockaddr;
|
return sockaddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
|
||||||
if (family == AF_UNIX)
|
if (family == AF_UNIX)
|
||||||
{
|
{
|
||||||
struct sockaddr_un *addr = (struct sockaddr_un *) native;
|
struct sockaddr_un *addr = (struct sockaddr_un *) native;
|
||||||
@ -299,7 +300,6 @@ g_socket_address_new_from_native (gpointer native,
|
|||||||
else
|
else
|
||||||
return g_unix_socket_address_new (addr->sun_path);
|
return g_unix_socket_address_new (addr->sun_path);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return g_native_socket_address_new (native, len);
|
return g_native_socket_address_new (native, len);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user