]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
natPlainDatagramSocketImpl.cc: Include sys/select.h only when configure finds it.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 21 Aug 1999 12:09:44 +0000 (12:09 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 21 Aug 1999 12:09:44 +0000 (12:09 +0000)
* java/net/natPlainDatagramSocketImpl.cc: Include sys/select.h
only when configure finds it.
* java/net/natPlainSocketImpl.cc: Likewise.

From-SVN: r28791

libjava/ChangeLog
libjava/java/net/natPlainDatagramSocketImpl.cc
libjava/java/net/natPlainSocketImpl.cc

index c2af3ddd559177553159e7ca4ed8302fe023173c..ba6a43bc32ee3029451f4e7cc218c12961aebc6d 100644 (file)
@@ -1,5 +1,9 @@
 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * java/net/natPlainDatagramSocketImpl.cc: Include sys/select.h
+       only when configure finds it.
+       * java/net/natPlainSocketImpl.cc: Likewise.
+
        * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
        function that detects the signature of getpwuid_r.
        (init_properties): Use it.
index 18d4c4a335c8f917f3c005d7071f1e22bd987e81..574c8da903ed6ed4a1f7f60fc4fff1cc95e7ce6f 100644 (file)
@@ -11,7 +11,9 @@ details.  */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
+#if HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif
 #include <netinet/in.h>
 #include <errno.h>
 #include <stdio.h>
index 2e7f9d5c558130bac848edb9090cdb67ba0a60c0..99aeff40857291077da6eb652b1e43c4dd5dcd22 100644 (file)
@@ -11,7 +11,9 @@ details.  */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
+#if HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#endif
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <errno.h>