]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Another newlib fix.
authorAnthony Green <green@redhat.com>
Mon, 22 Sep 2003 16:04:24 +0000 (16:04 +0000)
committerAnthony Green <green@gcc.gnu.org>
Mon, 22 Sep 2003 16:04:24 +0000 (16:04 +0000)
From-SVN: r71655

libjava/ChangeLog
libjava/configure
libjava/configure.in

index ac57998976ab90438dbd7065fb3235dc89f02796..31d82a6f1cfb8f76876dafa8a6b89d23e45ad11b 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-22  Anthony Green  <green@redhat.com>
+
+       * configure.in (HAVE_USLEEP_DECL): Define for newlib build.
+       * configure: Rebuilt.
+
 2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>
 
        PR java/12350:
index 6c44b70fa7e6d7614f25c7c146cb3127a6884b64..703370cf5b244be61244578e3772881273a0a69e 100755 (executable)
@@ -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
index dac09ab4d28af2415134a1c0007955078d6d2d3f..aaae5e69255efa26bdcb44328e1749b0cd0ce8af 100644 (file)
@@ -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 <unistd.h>.])
    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.