posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION.

* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.
	* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.

From-SVN: r60998
This commit is contained in:
Tom Tromey 2003-01-07 16:50:08 +00:00 committed by Tom Tromey
parent 0252d6041d
commit 6ec628973a
3 changed files with 12 additions and 1 deletions

View file

@ -1,6 +1,6 @@
// posix.h -- Helper functions for POSIX-flavored OSs.
/* Copyright (C) 2000, 2002 Free Software Foundation
/* Copyright (C) 2000, 2002, 2003 Free Software Foundation
This file is part of libgcj.
@ -60,11 +60,13 @@ _Jv_platform_close_on_exec (jint fd)
::fcntl (fd, F_SETFD, FD_CLOEXEC);
}
#ifdef JV_HASH_SYNCHRONIZATION
inline void
_Jv_platform_usleep (unsigned long usecs)
{
usleep (usecs);
}
#endif /* JV_HASH_SYNCHRONIZATION */
#ifndef DISABLE_JAVA_NET