mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
gio: compile GUnixSocketAddress on all platforms
Move the header under the common GIO include directory. Sorry if it breaks any build, you had to use the correct header path. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
@@ -115,7 +115,6 @@ if get_option('gtk_doc')
|
|||||||
'gunixfdmessage.h',
|
'gunixfdmessage.h',
|
||||||
'gunixinputstream.h',
|
'gunixinputstream.h',
|
||||||
'gunixoutputstream.h',
|
'gunixoutputstream.h',
|
||||||
'gunixsocketaddress.h',
|
|
||||||
'gdesktopappinfo.h',
|
'gdesktopappinfo.h',
|
||||||
'gosxappinfo.h',
|
'gosxappinfo.h',
|
||||||
]
|
]
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
#include "gnetworking.h"
|
#include "gnetworking.h"
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include "giowin32-afunix.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:gunixsocketaddress
|
* SECTION:gunixsocketaddress
|
||||||
@@ -45,9 +48,13 @@
|
|||||||
* errors. You can use g_unix_socket_address_abstract_names_supported()
|
* errors. You can use g_unix_socket_address_abstract_names_supported()
|
||||||
* to see if abstract names are supported.
|
* to see if abstract names are supported.
|
||||||
*
|
*
|
||||||
* Note that `<gio/gunixsocketaddress.h>` belongs to the UNIX-specific GIO
|
* Since GLib 2.72, #GUnixSocketAddress is available on all platforms. It
|
||||||
* interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file
|
* requires underlying system support (such as Windows 10 with `AF_UNIX`) at
|
||||||
* when using it.
|
* run time.
|
||||||
|
*
|
||||||
|
* Before GLib 2.72, `<gio/gunixsocketaddress.h>` belonged to the UNIX-specific
|
||||||
|
* GIO interfaces, thus you had to use the `gio-unix-2.0.pc` pkg-config file
|
||||||
|
* when using it. This is no longer necessary since GLib 2.72.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -352,7 +352,6 @@ if host_system != 'windows'
|
|||||||
'gunixfdmessage.c',
|
'gunixfdmessage.c',
|
||||||
'gunixmount.c',
|
'gunixmount.c',
|
||||||
'gunixmounts.c',
|
'gunixmounts.c',
|
||||||
'gunixsocketaddress.c',
|
|
||||||
'gunixvolume.c',
|
'gunixvolume.c',
|
||||||
'gunixvolumemonitor.c',
|
'gunixvolumemonitor.c',
|
||||||
'gunixinputstream.c',
|
'gunixinputstream.c',
|
||||||
@@ -383,7 +382,6 @@ if host_system != 'windows'
|
|||||||
'gunixfdmessage.h',
|
'gunixfdmessage.h',
|
||||||
'gunixinputstream.h',
|
'gunixinputstream.h',
|
||||||
'gunixoutputstream.h',
|
'gunixoutputstream.h',
|
||||||
'gunixsocketaddress.h',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if glib_have_cocoa
|
if glib_have_cocoa
|
||||||
@@ -569,6 +567,7 @@ gio_sources = files(
|
|||||||
'gdtlsclientconnection.c',
|
'gdtlsclientconnection.c',
|
||||||
'gdtlsserverconnection.c',
|
'gdtlsserverconnection.c',
|
||||||
'gunionvolumemonitor.c',
|
'gunionvolumemonitor.c',
|
||||||
|
'gunixsocketaddress.c',
|
||||||
'gvfs.c',
|
'gvfs.c',
|
||||||
'gvolume.c',
|
'gvolume.c',
|
||||||
'gvolumemonitor.c',
|
'gvolumemonitor.c',
|
||||||
@@ -704,6 +703,7 @@ gio_headers = files(
|
|||||||
'gdtlsconnection.h',
|
'gdtlsconnection.h',
|
||||||
'gdtlsclientconnection.h',
|
'gdtlsclientconnection.h',
|
||||||
'gdtlsserverconnection.h',
|
'gdtlsserverconnection.h',
|
||||||
|
'gunixsocketaddress.h',
|
||||||
'gvfs.h',
|
'gvfs.h',
|
||||||
'gvolume.h',
|
'gvolume.h',
|
||||||
'gvolumemonitor.h',
|
'gvolumemonitor.h',
|
||||||
|
Reference in New Issue
Block a user