This is the mail archive of the java-patches@sourceware.cygnus.com 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]

[Ultrix V4.3] Include <sys/select.h> only if present


The following patch is necessary for Ultrix V4.3.  But even with this
patch, there are many problems with the networking code left: Ultrix lacks
declarations of many networking functions (socket, bind, getsockname), IP
multicast and POSIX threads.  I doubt it's worth the effort pursuing this
port, especially since the machines are painfully slow.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Wed Aug  4 21:15:33 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
	present.

Index: natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.9
diff -u -p -r1.9 natPlainSocketImpl.cc
--- natPlainSocketImpl.cc	1999/08/08 14:06:23	1.9
+++ natPlainSocketImpl.cc	1999/08/09 19:46:37
@@ -11,7 +11,9 @@ details.  */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
+#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <errno.h>

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