From: Anthony Green Date: Mon, 22 Sep 2003 16:04:24 +0000 (+0000) Subject: Another newlib fix. X-Git-Tag: releases/gcc-3.4.0~3588 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5463a4f35db07971b9436c04d44da59fabc10be5;p=thirdparty%2Fgcc.git Another newlib fix. From-SVN: r71655 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ac57998976ab..31d82a6f1cfb 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-09-22 Anthony Green + + * configure.in (HAVE_USLEEP_DECL): Define for newlib build. + * configure: Rebuilt. + 2003-09-21 Ralph Loader PR java/12350: diff --git a/libjava/configure b/libjava/configure index 6c44b70fa7e6..703370cf5b24 100755 --- a/libjava/configure +++ b/libjava/configure @@ -4384,6 +4384,10 @@ EOF cat >> confdefs.h <<\EOF #define HAVE_LOCALTIME_R 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_USLEEP_DECL 1 EOF cat >> confdefs.h <<\EOF diff --git a/libjava/configure.in b/libjava/configure.in index dac09ab4d28a..aaae5e69255e 100644 --- a/libjava/configure.in +++ b/libjava/configure.in @@ -577,6 +577,7 @@ if test "x${with_newlib}" = "xyes"; then AC_DEFINE(HAVE_TIME, 1, [Define if you have time.]) AC_DEFINE(HAVE_GMTIME_R, 1, [Define if you have the 'gmtime_r' function]) AC_DEFINE(HAVE_LOCALTIME_R, 1, [Define if you have the 'localtime_r' function.]) + AC_DEFINE(HAVE_USLEEP_DECL, 1, [Define if usleep is declared in .]) dnl This is only for POSIX threads. AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_INIT, 1, [Define if using POSIX threads that have the mutexattr functions.]) dnl We also assume we are using gcc, which provides alloca.