Patch: define HAVE_USLEEP_DECL for newlib builds
Anthony Green
green@redhat.com
Sun Sep 21 18:17:00 GMT 2003
prims.cc fails to build for some systems (cygwin) without this patch.
Ok?
2003-09-21 Anthony Green <green@redhat.com>
* configure.in (HAVE_USLEEP_DECL): Define for newlib builds.
* configure: Rebuilt.
Index: configure.in
===================================================================
RCS file: /cvs/uberbaum/libjava/configure.in,v
retrieving revision 1.171
diff -c -u -p -r1.171 configure.in
--- configure.in 17 Sep 2003 14:59:28 -0000 1.171
+++ configure.in 21 Sep 2003 15:25:48 -0000
@@ -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.
--
Anthony Green <green@redhat.com>
Red Hat, Inc.
More information about the Java-patches
mailing list