[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

GCC Preprocessor directives for GNU/Hurd?

Dear Hurd Maintainer,

I'm trying to make the package I maintain, wide-dhcpv6, to be able to
build on hurd-i386 platform.
I did kFreeBSD port a few days ago by referring a kFreeBSD wiki page [0].

The table is quite clear how to detect FreeBSD, kFreeBSD, Linux.
So I easily created the patch [1], and after upload it's confirmed to
build well for kFreeBSD [2][3][4].

Now the pending arch left is only hurd-i386.
My question is, like kFreeBSD wiki page [0], what's the preprocessor
directives for Hurd?
I googled and find some possible ones:
 * __GNUC__
Please help to confirm which one to use.
After this confirmed, I think it'd better update the info back to the wiki [0].

Thank you!


[0]: https://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ#Q._How_do_I_detect_kfreebsd_with_preprocessor_directives_in_a_C_program.3F
[1]: https://github.com/rogers0/packaging_wide-dhcpv6/blob/master/debian/patches/0014-Support-to-build-on-kFreeBSD-platform.patch
[2]: https://buildd.debian.org/status/package.php?p=wide-dhcpv6
[3]: https://buildd.debian.org/status/logs.php?pkg=wide-dhcpv6&arch=kfreebsd-amd64
[4]: https://buildd.debian.org/status/logs.php?pkg=wide-dhcpv6&arch=kfreebsd-i386

Reply to: