diff options
author | Christian Thalinger <twisti@complang.tuwien.ac.at> | 2008-07-07 09:19:34 +0000 |
---|---|---|
committer | Christian Thalinger <twisti@complang.tuwien.ac.at> | 2008-07-07 09:19:34 +0000 |
commit | 0485d9699242e3c74c5fbca0cd25a33bc213a718 (patch) | |
tree | 1237fb5bcdd4c960c4ba65a05f1bbd4eed1cc829 /native | |
parent | 112b91abbfe3459c2286610f6f7fd28f7bdac930 (diff) | |
download | classpath-0485d9699242e3c74c5fbca0cd25a33bc213a718.tar.gz |
2008-07-07 Christian Thalinger <twisti@complang.tuwien.ac.at>
* configure.ac (AC_CHECK_HEADERS): Added sys/sockio.h, required
for Solaris.
(AC_CHECK_LIB): Check for socket.
* native/jni/java-net/java_net_VMNetworkInterface.c (unistd.h):
Added.
[HAVE_SYS_SOCKIO_H] (sys/sockio.h): Likewise.
Diffstat (limited to 'native')
-rw-r--r-- | native/jni/java-net/java_net_VMNetworkInterface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/jni/java-net/java_net_VMNetworkInterface.c b/native/jni/java-net/java_net_VMNetworkInterface.c index 31e020509..658299733 100644 --- a/native/jni/java-net/java_net_VMNetworkInterface.c +++ b/native/jni/java-net/java_net_VMNetworkInterface.c @@ -52,6 +52,12 @@ exception statement from your version. */ #include <net/if.h> #include <sys/ioctl.h> +/* Required on Solaris. */ +#include <unistd.h> + +#ifdef HAVE_SYS_SOCKIO_H +# include <sys/sockio.h> +#endif #include <jni.h> #include <jcl.h> |