aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/natInetAddressWin32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/net/natInetAddressWin32.cc')
-rw-r--r--libjava/java/net/natInetAddressWin32.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/libjava/java/net/natInetAddressWin32.cc b/libjava/java/net/natInetAddressWin32.cc
index a0a8c67..f6748fd 100644
--- a/libjava/java/net/natInetAddressWin32.cc
+++ b/libjava/java/net/natInetAddressWin32.cc
@@ -57,6 +57,34 @@ details. */
extern "C" int gethostname (char *name, int namelen);
#endif
+#ifdef DISABLE_JAVA_NET
+
+jbyteArray
+java::net::InetAddress::aton (jstring)
+{
+ return NULL;
+}
+
+jint
+java::net::InetAddress::getFamily (jbyteArray bytes)
+{
+ return 0;
+}
+
+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)
{
@@ -323,3 +351,5 @@ java::net::InetAddress::getLocalHostname ()
// anyway, thanks to the InetAddress.localhost cache.
return JvNewStringUTF (chars);
}
+
+#endif /* DISABLE_JAVA_NET */