This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] posix.cc:_Jv_platform_nanotime
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 31 Mar 2006 21:30:31 +0200
- Subject: [patch] posix.cc:_Jv_platform_nanotime
Hello,
this little patch makes HP-UX compile libjava again.
The reason is, on HP-UX the clockid_t is an enum while on most other
platform it is an int. Declaring id with clockid_t makes both worlds happy.
Ok ?
Andreas
2006-03-31 Andreas Tobler <a.tobler@schweiz.ch>
* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
Index: posix.cc
===================================================================
--- posix.cc (revision 112569)
+++ posix.cc (working copy)
@@ -71,7 +71,7 @@
{
#ifdef HAVE_CLOCK_GETTIME
struct timespec now;
- int id;
+ clockid_t id;
#ifdef CLOCK_MONOTONIC
id = CLOCK_MONOTONIC;
#elif defined (CLOCK_HIGHRES)