natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present.
2002-05-02 Jerome Marc <marcjero@yahoo.com> * java/net/natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present. From-SVN: r53050
This commit is contained in:
parent
b303008e9a
commit
16034e4ba3
2 changed files with 17 additions and 0 deletions
|
@ -46,11 +46,23 @@ read(int s, void *buf, int len)
|
|||
#define ENOPROTOOPT 109
|
||||
#endif
|
||||
#else /* WIN32 */
|
||||
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#define BSD_COMP /* Get FIONREAD on Solaris2. */
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
// Pick up FIONREAD on Solaris 2.5.
|
||||
#ifdef HAVE_SYS_FILIO_H
|
||||
#include <sys/filio.h>
|
||||
#endif
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#endif /* WIN32 */
|
||||
#endif /* DISABLE_JAVA_NET */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue