This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: define HAVE_USLEEP_DECL for newlib builds


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]