< prev index next >

src/java.base/unix/native/libnet/SdpSupport.c

Print this page
rev 59105 : imported patch corelibs

@@ -25,15 +25,11 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <errno.h>
 
-#if defined(__solaris__)
-  #if !defined(PROTO_SDP)
-    #define PROTO_SDP       257
-  #endif
-#elif defined(__linux__)
+#if defined(__linux__)
   #if !defined(AF_INET_SDP)
     #define AF_INET_SDP     27
   #endif
 #endif
 

@@ -53,14 +49,11 @@
  */
 static int create(JNIEnv* env)
 {
     int s;
 
-#if defined(__solaris__)
-    int domain = ipv6_available() ? AF_INET6 : AF_INET;
-    s = socket(domain, SOCK_STREAM, PROTO_SDP);
-#elif defined(__linux__)
+#if defined(__linux__)
     /**
      * IPv6 not supported by SDP on Linux
      */
     if (ipv6_available()) {
         JNU_ThrowIOException(env, "IPv6 not supported");
< prev index next >