posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.

2006-03-31  Andreas Tobler  <a.tobler@schweiz.ch>

	* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.

From-SVN: r112587
This commit is contained in:
Andreas Tobler 2006-03-31 22:38:55 +02:00 committed by Andreas Tobler
parent f555078868
commit 6b04402b92
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-03-31 Andreas Tobler <a.tobler@schweiz.ch>
* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
2006-03-30 Tom Tromey <tromey@redhat.com>
PR java/26042:

View File

@ -71,7 +71,7 @@ _Jv_platform_nanotime ()
{
#ifdef HAVE_CLOCK_GETTIME
struct timespec now;
int id;
clockid_t id;
#ifdef CLOCK_MONOTONIC
id = CLOCK_MONOTONIC;
#elif defined (CLOCK_HIGHRES)