Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Roger Shimizu
On Thu, Dec 17, 2015 at 11:21 PM, Svante Signell wrote: > I would prefer to answer no on this question, it is only kFreeBSD that defines > __GLIBC__ unconditionally. I've experienced packages assuming that __GLIBC__ > is > defined, and therefore FTBFS on GNU/Hurd. On Thu, Dec 17, 2015 at 11:35 P

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Samuel Thibault
Roger Shimizu, on Thu 17 Dec 2015 22:39:18 +0900, wrote: > it's safe for most common application to treat __GLIBC__ > as "Yes" for Linux and Hurd. It's yes when the libc being used is glibc. On linux with uclibc for instance, it wouldn't be defined. So depending on what feature exactly you want to

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Svante Signell
On Thu, 2015-12-17 at 22:39 +0900, Roger Shimizu wrote: > On Thu, Dec 17, 2015 at 10:03 PM, Svante Signell > wrote: > > On Thu, 2015-12-17 at 21:05 +0900, Roger Shimizu wrote: > > > > For GNU/Hurd the preprocessor directive is __GNU__ > > > > > > Thanks for your reply! > > > I guess like Linux an

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Roger Shimizu
On Thu, Dec 17, 2015 at 10:03 PM, Svante Signell wrote: > On Thu, 2015-12-17 at 21:05 +0900, Roger Shimizu wrote: >> > For GNU/Hurd the preprocessor directive is __GNU__ >> >> Thanks for your reply! >> I guess like Linux and kFreeBSD, __GLIBC__ is also set in Debian Hurd, right? >> >> BTW. Please

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Svante Signell
On Thu, 2015-12-17 at 21:05 +0900, Roger Shimizu wrote: > > For GNU/Hurd the preprocessor directive is __GNU__ > > Thanks for your reply! > I guess like Linux and kFreeBSD, __GLIBC__ is also set in Debian Hurd, right? > > BTW. Please CC me when replying. I'd appreciate that! No, __GLIBC__ is not

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Roger Shimizu
On Thu, Dec 17, 2015 at 9:05 PM, Roger Shimizu wrote: >> For GNU/Hurd the preprocessor directive is __GNU__ > I guess like Linux and kFreeBSD, __GLIBC__ is also set in Debian Hurd, right? I have updated the wiki [0] according to my understanding. Please feedback if any inappropriate. [0]: https

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Roger Shimizu
> For GNU/Hurd the preprocessor directive is __GNU__ Thanks for your reply! I guess like Linux and kFreeBSD, __GLIBC__ is also set in Debian Hurd, right? BTW. Please CC me when replying. I'd appreciate that! Cheers, Roger

Re: GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Svante Signell
On Thu, 2015-12-17 at 18:13 +0900, Roger Shimizu wrote: > 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

GCC Preprocessor directives for GNU/Hurd?

2015-12-17 Thread Roger Shimizu
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], an