This is the mail archive of the mailing list for the GCC 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]

Re: Thread.sleep() and System.nanoTime() fixes

Andreas Schwab <> writes:

> (Geoffrey Keating) writes:
>> 2006-09-13  Geoffrey Keating  <>
>> 	* (_Jv_platform_nanotime): Return nanoseconds, not
>> 	microseconds; use gettimeofday when available.
>> 	* (_Jv_CondWait): Improve accuracy and range of
>> 	timeout calculation.
>> 	* testsuite/libjava.lang/ New.
>> 	* testsuite/libjava.lang/Thread_Sleep_2.out: New.
> ../../../libjava/ In function 'int _Jv_CondWait(_Jv_ConditionVariable_t*, _Jv_Mutex_t*, jlong, jint)':
> ../../../libjava/ error: 'gettimeofday' was not declared in this scope
> make[3]: *** [posix-threads.lo] Error 1

I've checked this in as obvious, tested on ia64-suse-linux.


2006-09-14  Andreas Schwab  <>

	* Include "posix.h".

Index: libjava/
--- libjava/	(revision 116942)
+++ libjava/	(revision 116943)
@@ -13,6 +13,8 @@ details.  */
 #include <config.h>
+#include "posix.h"
 // If we're using the Boehm GC, then we need to override some of the
 // thread primitives.  This is fairly gross.

Andreas Schwab, SuSE Labs,
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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