This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: define HAVE_USLEEP_DECL for newlib builds
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 21 Sep 2003 08:29:53 -0700
- Subject: Patch: define HAVE_USLEEP_DECL for newlib builds
- Organization: Red Hat, Inc.
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.