On Mon, 2012-12-31 at 17:41:52 +, Steven Chamberlain wrote:
On 31/12/12 17:06, Dirk Eddelbuettel wrote:
https://r-forge.r-project.org/scm/viewvc.php/pkg/Rcpp/src/Timer.cpp?root=rcppr1=4182r2=4181pathrev=4182
Actually... presence of time.h rather depends on the libc, not the kernel?
So __GLIBC__ is perhaps more relevant than __FreeBSD_kernel__ in this
case - plus it should work for other GNU/k*BSD variants if/when they exist.
Well, that's still suboptimal, the ideal solution in this kind of
cases is to test for the feature at build time, which avoids all this
ifdef whitelists, and subsequent updates.
While here, I think I can explain the build failure on GNU/Hurd. The
test for __MACH__ applies to both Apple systems and GNU systems. I
suggest using mach/mach_time.h only for __APPLE__, and then adding
__GNU__ to the list for time.h
For Mac OS X I'd test for __APPLE__ __MACH__, otherwise that could
trigger on other non Mach-based Apple systems.
Thanks,
Guillem
--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130110233139.ga27...@gaara.hadrons.org