jdk/src/solaris/native/sun/nio/ch/Net.c
changeset 8788 b98f18278dc4
parent 7668 d4a77089c587
child 9035 1255eb81cc2f
--- a/jdk/src/solaris/native/sun/nio/ch/Net.c	Mon Mar 14 14:49:52 2011 -0700
+++ b/jdk/src/solaris/native/sun/nio/ch/Net.c	Tue Mar 15 13:15:31 2011 +0000
@@ -154,6 +154,22 @@
     return (ipv6_available()) ? JNI_TRUE : JNI_FALSE;
 }
 
+JNIEXPORT jboolean JNICALL
+Java_sun_nio_ch_Net_canIPv6SocketJoinIPv4Group0(JNIEnv* env, jclass cl)
+{
+    return JNI_TRUE;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_sun_nio_ch_Net_canJoin6WithIPv4Group0(JNIEnv* env, jclass cl)
+{
+#ifdef __solaris__
+    return JNI_TRUE;
+#else
+    return JNI_FALSE;
+#endif
+}
+
 JNIEXPORT int JNICALL
 Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6,
                             jboolean stream, jboolean reuse)