summaryrefslogtreecommitdiff
path: root/libjava/include/posix.h
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-07 16:50:08 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-07 16:50:08 +0000
commit79a36958c69a6f0dd4e08f55e52bcef2bcf75d93 (patch)
treec61210a6ecdb2fa8bd28904a0c652e42832ee2b0 /libjava/include/posix.h
parent2a72e4e95d83c839d4131dd3db59be3bb405fe57 (diff)
downloadgcc-79a36958c69a6f0dd4e08f55e52bcef2bcf75d93.tar.gz
* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
JV_HASH_SYNCHRONIZATION. * include/win32.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60998 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r--libjava/include/posix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 859db6e6ba1..0e1220a10b3 100644
--- a/libjava/include/posix.h
+++ b/libjava/include/posix.h
@@ -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