This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]