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
This commit is contained in:
parent
a8784c4c8f
commit
6b3517eaf5
@ -1,3 +1,11 @@
|
||||
2003-07-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||
|
||||
* 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.
|
||||
|
||||
2003-07-01 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* gnu/gcj/convert/natIconv.cc
|
||||
|
@ -83,6 +83,9 @@
|
||||
/* Define if gethostbyaddr_r returns `int'. */
|
||||
#undef GETHOSTBYADDR_R_RETURNS_INT
|
||||
|
||||
/* Define if usleep is declared in <unistd.h>. */
|
||||
#undef HAVE_USLEEP_DECL
|
||||
|
||||
/* Define if struct tm has tm_gmtoff field. */
|
||||
#undef STRUCT_TM_HAS_GMTOFF
|
||||
|
||||
|
378
libjava/configure
vendored
378
libjava/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -678,6 +678,10 @@ else
|
||||
AC_EGREP_HEADER(gethostname, unistd.h, [
|
||||
AC_DEFINE(HAVE_GETHOSTNAME_DECL)])])
|
||||
|
||||
AC_CHECK_FUNCS(usleep, [
|
||||
AC_EGREP_HEADER(usleep, unistd.h, [
|
||||
AC_DEFINE(HAVE_USLEEP_DECL)])])
|
||||
|
||||
# Look for these functions in the thread library, but only bother
|
||||
# if using POSIX threads.
|
||||
if test "$THREADS" = posix; then
|
||||
|
@ -114,6 +114,9 @@
|
||||
/* Define if gethostbyaddr_r returns `int'. */
|
||||
#undef GETHOSTBYADDR_R_RETURNS_INT
|
||||
|
||||
/* Define if usleep is declared in <unistd.h>. */
|
||||
#undef HAVE_USLEEP_DECL
|
||||
|
||||
/* Define if struct tm has tm_gmtoff field. */
|
||||
#undef STRUCT_TM_HAS_GMTOFF
|
||||
|
||||
@ -319,6 +322,9 @@
|
||||
/* Define if you have the unlink function. */
|
||||
#undef HAVE_UNLINK
|
||||
|
||||
/* Define if you have the usleep function. */
|
||||
#undef HAVE_USLEEP
|
||||
|
||||
/* Define if you have the utime function. */
|
||||
#undef HAVE_UTIME
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user