* java/net/natPlainDatagramSocketImpl.cc: Include sys/select.h
only when configure finds it.
* java/net/natPlainSocketImpl.cc: Likewise.
From-SVN: r28791
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.
#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>
#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>