This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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:

>> +#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. */


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