summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/natInetAddress.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-02 00:19:01 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-02 00:19:01 +0000
commitc441eb638c97119963318d083ac57bcca47f272d (patch)
tree46596da76866c4956605f9b7148762c76b027f00 /libjava/java/net/natInetAddress.cc
parent4ca3e02fed32ab70cb538fd570e607dd19b9f84d (diff)
downloadppe42-gcc-c441eb638c97119963318d083ac57bcca47f272d.tar.gz
ppe42-gcc-c441eb638c97119963318d083ac57bcca47f272d.zip
* configure: Rebuilt.
* configure.in: Set classpath when invoking gcj. Use changequote around sed invocation. * java/net/natPlainSocketImpl.cc: Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed typo in exception string. (getTimeToLive): Likewise. Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natInetAddress.cc: Stub native functions if DISABLE_JAVA_NET is defined. * configure.host: Disable java.net for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_JAVA_NET): Undefine. * configure.in: Added --disable-java-net and new define `DISABLE_JAVA_NET'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29759 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/natInetAddress.cc')
-rw-r--r--libjava/java/net/natInetAddress.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/libjava/java/net/natInetAddress.cc b/libjava/java/net/natInetAddress.cc
index bc69ac2d2ac..13ce51d3cfa 100644
--- a/libjava/java/net/natInetAddress.cc
+++ b/libjava/java/net/natInetAddress.cc
@@ -49,6 +49,28 @@ details. */
extern "C" int gethostname (char *name, int namelen);
#endif
+#ifdef DISABLE_JAVA_NET
+
+jbyteArray
+java::net::InetAddress::aton (jstring)
+{
+ return NULL;
+}
+
+JArray<java::net::InetAddress*> *
+java::net::InetAddress::lookup (jstring, java::net::InetAddress *, jboolean)
+{
+ return NULL;
+}
+
+jstring
+java::net::InetAddress::getLocalHostname ()
+{
+ return NULL;
+}
+
+#else /* DISABLE_JAVA_NET */
+
jbyteArray
java::net::InetAddress::aton (jstring host)
{
@@ -300,3 +322,5 @@ java::net::InetAddress::getLocalHostname ()
// anyway, thanks to the InetAddress.localhost cache.
return JvNewStringUTF (chars);
}
+
+#endif /* DISABLE_JAVA_NET */
OpenPOWER on IntegriCloud