diff options
| author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2003-07-07 14:11:09 +0000 |
|---|---|---|
| committer | Rainer Orth <ro@gcc.gnu.org> | 2003-07-07 14:11:09 +0000 |
| commit | 6b3517eaf567c4b740e4d339369d081cc3a10e38 (patch) | |
| tree | 8a359c4f4ba44389169ebad721ec1d18cd2714c9 /libjava/include/posix.h | |
| parent | a8784c4c8fce72ffbc1cd1cc8f9c07f71a99f15b (diff) | |
| download | gcc-6b3517eaf567c4b740e4d339369d081cc3a10e38.zip gcc-6b3517eaf567c4b740e4d339369d081cc3a10e38.tar.gz gcc-6b3517eaf567c4b740e4d339369d081cc3a10e38.tar.bz2 | |
configure.in: Check for usleep declaration.
* configure.in: Check for usleep declaration.
* acconfig.h (HAVE_USLEEP_DECL): Provide template.
* configure: Regenerate.
* include/config.h.in: Likewise.
* include/posix.h [!HAVE_USLEEP_DECL]: Declare usleep.
From-SVN: r69041
Diffstat (limited to 'libjava/include/posix.h')
| -rw-r--r-- | libjava/include/posix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 52cc6d2..2c6054e 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -92,6 +92,10 @@ _Jv_platform_close_on_exec (jint fd) #undef fcntl #ifdef JV_HASH_SYNCHRONIZATION +#ifndef HAVE_USLEEP_DECL +extern "C" int usleep (useconds_t useconds); +#endif /* not HAVE_USLEEP_DECL */ + inline void _Jv_platform_usleep (unsigned long usecs) { |
