[glib/wip/danw/creds: 2/3] gcredentials: add Hurd support
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/danw/creds: 2/3] gcredentials: add Hurd support
- Date: Thu, 19 Sep 2013 20:42:39 +0000 (UTC)
commit 257482e6478ef0b803a8b0c4a5203994c5c65ad6
Author: Dan Winship <danw gnome org>
Date: Thu Sep 19 12:56:56 2013 -0400
gcredentials: add Hurd support
It uses the same system as FreeBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=708265
gio/gcredentials.c | 5 +++--
gio/gcredentialsprivate.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gio/gcredentials.c b/gio/gcredentials.c
index 06f044b..e623440 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 3cb8fe0..d3b5f97 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]