This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: unidiff version of the last patch I submitted
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: Tony Kimball <alk at pobox dot com>, gcc-bugs at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: 26 Jul 2002 12:37:52 -0600
- Subject: Re: unidiff version of the last patch I submitted
- References: <200207261629.RAA03672@cam-mail2.cambridge.arm.com>
- Reply-to: tromey at redhat dot com
>>>>> "Richard" == Richard Earnshaw <rearnsha@arm.com> writes:
>> +#include <sys/socket.h>
>> +#include <fcntl.h>
Richard> is causing a build failure on an arm-elf cross using newlib.
Richard> Newlib doesn't provide sys/socket.h so we die horribly.
Thanks. Those includes aren't necessary; they're stuff from the patch
that I forgot to delete.
Fixed as appended.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/io/natFileDescriptorPosix.cc: Don't include sys/socket.h or
fcntl.h.
Index: java/io/natFileDescriptorPosix.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/natFileDescriptorPosix.cc,v
retrieving revision 1.20
diff -u -r1.20 natFileDescriptorPosix.cc
--- java/io/natFileDescriptorPosix.cc 24 Jul 2002 17:48:41 -0000 1.20
+++ java/io/natFileDescriptorPosix.cc 26 Jul 2002 18:32:04 -0000
@@ -17,8 +17,6 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/param.h>
-#include <sys/socket.h>
-#include <fcntl.h>
#ifdef HAVE_SYS_IOCTL_H
#define BSD_COMP /* Get FIONREAD on Solaris2. */