[cp-patches] [PATCH] Fix clock_gettime() support check for Darwin

2011-07-05 Thread Pekka Enberg
Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with _POSIX_TIMERS. This fixes the following compilation error: java_lang_VMSystem.c: In function ‘Java_java_lang_VMSystem_nanoTime’: java_lang_VMSystem.c:148: warning: implicit

Re: [cp-patches] [PATCH] Fix clock_gettime() support check for Darwin

2011-07-05 Thread Mark Wielaard
Hi Pekka, On Tue, 2011-07-05 at 16:30 +0300, Pekka Enberg wrote: Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with _POSIX_TIMERS. [...] -#ifdef _POSIX_MONOTONIC_CLOCK +#if _POSIX_TIMERS 0 defined(_POSIX_MONOTONIC_CLOCK) jlong

[cp-patches] [PATCH v2] Fix clock_gettime() support check for Darwin

2011-07-05 Thread Pekka Enberg
Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with HAVE_CLOCK_GETTIME. This fixes the following compilation error: java_lang_VMSystem.c: In function ‘Java_java_lang_VMSystem_nanoTime’: java_lang_VMSystem.c:148: warning: implicit