This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
libjava does not build on arm-elf (newlib) after your patch
- From: Adam Nemet <anemet at Lnxw dot com>
- To: tromey at redhat dot com, java at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Date: Sat, 4 Jan 2003 12:49:55 -0800
- Subject: libjava does not build on arm-elf (newlib) after your patch
Tom,
When trying to build libjava for arm-elf I get this:
In file included from /home/anemet/src/clean/clean/libjava/prims.cc:12:
include/platform.h: In function `void _Jv_platform_usleep(long unsigned int)':
include/platform.h:66: error: `usleep' undeclared (first use this function)
And IMO this is patch that is causing it:
2002-12-31 Tom Tromey <tromey@redhat.com>
Ranjit Mathew <rmathew@hotmail.com>
Fix for PR libgcj/8997:
* java/lang/natObject.cc (spin): Use _Jv_platform_usleep.
Include platform.h.
* include/posix.h (_Jv_platform_usleep): New function.
* include/win32.h (_Jv_platform_usleep): New function.
Apparently, newlib does not define usleep except for rtems and cygwin.
See newlib/libc/include/sys/unistd.h. I guess there should be a
configure check for usleep.
Adam