GNOME Bugzilla – Bug 708265
add support for GNU/Hurd in GLib D-Bus Library
Last modified: 2013-10-04 13:57:54 UTC
Created attachment 255138 [details] [review] hurd support in gio/{,tests}/gcredentials.c Hi, The attached patch solves the functionality problems for GNU/Hurd adding __GNU_ to selected parts of the code. The places are the same as for kFreeBSD_, they both have SCMCREDS defined, in contrast to Linux.
Review of attachment 255138 [details] [review]: This looks reasonably straight forward. I confirmed that __GNU__ is not defined here with GCC-on-Linux (which defines only __GNUC__). We're in a hard freeze right now, so please wait until after the release to commit this.
I have to say I hate the proliferation of semirandom platform checks in some parts of the gio code. Three in one place seems to be about the right time to add a feature check in configure ?
bug 701482 has a good plan for simplifying the GCredentials platform checks. I'll try to deal with that soon if no one else does.
Comment on attachment 255138 [details] [review] hurd support in gio/{,tests}/gcredentials.c wip/danw/creds now has a cleanup, followed by a much simplified (ie, one-line) version of this patch
Fixed in master, will probably end up in glib-2-38