This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

Re: unidiff version of the last patch I submitted


> >>>>> "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.



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