mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
gcredentials: add Hurd support
It uses the same system as FreeBSD. https://bugzilla.gnome.org/show_bug.cgi?id=708265
This commit is contained in:
parent
cedd697bf8
commit
66edac7fb9
@ -59,8 +59,9 @@
|
|||||||
* man page for details. This corresponds to
|
* man page for details. This corresponds to
|
||||||
* %G_CREDENTIALS_TYPE_LINUX_UCRED.
|
* %G_CREDENTIALS_TYPE_LINUX_UCRED.
|
||||||
*
|
*
|
||||||
* On FreeBSD, the native credential type is a <type>struct cmsgcred</type>.
|
* On FreeBSD, Debian GNU/kFreeBSD, and GNU/Hurd, the native
|
||||||
* This corresponds to %G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED.
|
* credential type is a <type>struct cmsgcred</type>. This corresponds
|
||||||
|
* to %G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED.
|
||||||
*
|
*
|
||||||
* On OpenBSD, the native credential type is a <type>struct sockpeercred</type>.
|
* On OpenBSD, the native credential type is a <type>struct sockpeercred</type>.
|
||||||
* This corresponds to %G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED.
|
* This corresponds to %G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED.
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED 1
|
#define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_SUPPORTED 1
|
||||||
#define G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED 1
|
#define G_CREDENTIALS_SOCKET_GET_CREDENTIALS_SUPPORTED 1
|
||||||
|
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
|
||||||
#define G_CREDENTIALS_SUPPORTED 1
|
#define G_CREDENTIALS_SUPPORTED 1
|
||||||
#define G_CREDENTIALS_USE_FREEBSD_CMSGCRED 1
|
#define G_CREDENTIALS_USE_FREEBSD_CMSGCRED 1
|
||||||
#define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED
|
#define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED
|
||||||
|
Loading…
Reference in New Issue
Block a user