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

Re: Bug#697032: rcpp: FTBFS[kfreebsd]: #error "Rcpp::Timer not supported by your OS."


On 31/12/12 06:47, Rainer Hurling wrote:
> I just tried to build Rcpp with __FreeBSD_kernel__ on a recent FreeBSD
> 10.0-CURRENT (newest developer version) and it does not resolve. On
> 'pure' FreeBSD there is only __FreeBSD__ defined, not a kernel specific
> version.

Which compiler were you using?

It's still defined in 10.0-CURRENT at least in <sys/param.h>:


> I think there are much more 'pure' FreeBSD systems than linux ones with
> FreeBSD kernel, so it would be nice, if you would pick up at least the
> __FreeBSD__ symbol.

You are right, I see in the comments describing __FreeBSD_kernel__, that
__FreeBSD__ should be tested for as well, for the benefit of "older
FreeBSD versions, 3rd party compilers".

So Dirk, I think we now have this horror:

#elif defined(linux) || defined(__linux) || defined(__FreeBSD__) ||
defined(__FreeBSD_kernel__) || defined(__NetBSD__) ||
defined(__OpenBSD__) || defined(__DragonFly__)

I'm not sure what (__linux) refers to and may not be needed.

Some others might be:

defined(__APPLE__) for Mach, or Mac OS X
defined(__GNU__) for GNU/Hurd

Yet more examples:


Steven Chamberlain

Reply to: