diff options
author | Dan Winship <danw@gnome.org> | 2013-09-19 12:56:56 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-10-04 09:51:31 -0400 |
commit | 66edac7fb9f44009cdcac68c102c77d880e139a3 (patch) | |
tree | f18257208e6834f7b51fb829069f8d2eadd514b5 /gio | |
parent | cedd697bf80faf18d0d42b3e4d8bef5a5cf8ef9f (diff) |
gcredentials: add Hurd support
It uses the same system as FreeBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=708265
Diffstat (limited to 'gio')
-rw-r--r-- | gio/gcredentials.c | 5 | ||||
-rw-r--r-- | gio/gcredentialsprivate.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gio/gcredentials.c b/gio/gcredentials.c index 8ac7a39fb..b18ccc40f 100644 --- a/gio/gcredentials.c +++ b/gio/gcredentials.c @@ -59,8 +59,9 @@ * man page for details. This corresponds to * %G_CREDENTIALS_TYPE_LINUX_UCRED. * - * On FreeBSD, the native credential type is a <type>struct cmsgcred</type>. - * This corresponds to %G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED. + * On FreeBSD, Debian GNU/kFreeBSD, and GNU/Hurd, the native + * 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>. * This corresponds to %G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED. diff --git a/gio/gcredentialsprivate.h b/gio/gcredentialsprivate.h index 3cb8fe0a5..d3b5f9725 100644 --- a/gio/gcredentialsprivate.h +++ b/gio/gcredentialsprivate.h @@ -32,7 +32,7 @@ #define G_CREDENTIALS_UNIX_CREDENTIALS_MESSAGE_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_USE_FREEBSD_CMSGCRED 1 #define G_CREDENTIALS_NATIVE_TYPE G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED |