unidiff version of the last patch I submitted

Tom Tromey tromey@redhat.com
Fri Jul 26 12:47:00 GMT 2002

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


Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* java/io/natFileDescriptorPosix.cc: Don't include sys/socket.h or

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>
 #define BSD_COMP /* Get FIONREAD on Solaris2. */

More information about the Gcc-bugs mailing list