aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/natInetAddress.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-10-02 00:19:01 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-10-02 00:19:01 +0000
commit4b68fe8a3665fc18f0c4774e00cbe440a4986c8b (patch)
tree46596da76866c4956605f9b7148762c76b027f00 /libjava/java/net/natInetAddress.cc
parent95f1a0447f9be57101aa02ac8182a275c3ecb60c (diff)
downloadgcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.zip
gcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.tar.gz
gcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.tar.bz2
configure: Rebuilt.
* 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'. From-SVN: r29759
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 bc69ac2..13ce51d 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 */