This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: unidiff version of the last patch I submitted
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: tromey at redhat dot com
- Cc: Richard dot Earnshaw at arm dot com, Tony Kimball <alk at pobox dot com>, gcc-bugs at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Thu, 29 Aug 2002 10:44:03 +0100
- Subject: Re: unidiff version of the last patch I submitted
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> >>>>> "Richard" == Richard Earnshaw <rearnsha@arm.com> writes:
>
> Sorry for the delay in my reply; I've been on vacation.
Sorry for the long delay replying to your reply -- Too many things to work
on, plus a series of other problems that prevented me testing this before.
>
> Richard> java/io/natFileDescriptor.cc: In member function `void
> Richard> java::io::FileDescriptor::setLength(__java_long)':
> Richard> java/io/natFileDescriptor.cc:220: error: `::ftruncate' undeclared (first
> Richard> use
> Richard> here)
>
> Thanks.
>
> Could you try the appended patch? I've included the configure patch
> in case you don't have the right auto* installed. If there's some
> alternative to ftruncate(), we could consider using that instead.
>
> If this works for you I will check it in. It works fine for the
> native Linux case.
>
> Tom
>
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> * java/io/natFileDescriptorPosix.cc (setLength): Handle case where
> ftruncate is missing.
> * configure, include/config.h.in: Rebuilt.
> * acconfig.h (HAVE_FTRUNCATE): Mention.
> * configure.in: Check for ftruncate.
Thanks, this solves the problem and I can now build the java libraries
again with Newlib.
R.