open-src/lib/libxtrans/inetv6.patch
changeset 606 068c11b419c9
parent 98 c21b46ed1efd
child 919 425233ae7236
equal deleted inserted replaced
605:e5259db5befc 606:068c11b419c9
    31 Solaris 9 shipped with IPv6 support based on the X.Org draft standard, which 
    31 Solaris 9 shipped with IPv6 support based on the X.Org draft standard, which 
    32 used "inetv6" - the final standard renamed it to "inet6", but since we already
    32 used "inetv6" - the final standard renamed it to "inet6", but since we already
    33 shipped, we retain the old name for backwards compatibility.  
    33 shipped, we retain the old name for backwards compatibility.  
    34 (See PSARC 2004/285.)
    34 (See PSARC 2004/285.)
    35 
    35 
    36 diff -urp -x '*~' Xtranssock.c Xtranssock.c
    36 diff -urp -x '*~' -x '*.orig' Xtranssock.c Xtranssock.c
    37 --- Xtranssock.c	2006-07-11 11:06:40.000000000 -0700
    37 --- Xtranssock.c	2008-08-07 07:31:14.000000000 -0700
    38 +++ Xtranssock.c	2006-08-24 15:13:33.433126000 -0700
    38 +++ Xtranssock.c	2008-10-07 09:15:45.520783000 -0700
    39 @@ -197,6 +197,9 @@ static Sockettrans2dev Sockettrans2devta
    39 @@ -167,6 +167,9 @@ static Sockettrans2dev Sockettrans2devta
    40      {"tcp",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},
    40      {"tcp",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},
    41      {"tcp",AF_INET,SOCK_STREAM,SOCK_DGRAM,0}, /* fallback */
    41      {"tcp",AF_INET,SOCK_STREAM,SOCK_DGRAM,0}, /* fallback */
    42      {"inet6",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},
    42      {"inet6",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},
    43 +#ifdef SUNSOFT /* Backwards compatibility with Solaris 9 */
    43 +#ifdef SUNSOFT /* Backwards compatibility with Solaris 9 */
    44 +    {"inetv6",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},
    44 +    {"inetv6",AF_INET6,SOCK_STREAM,SOCK_DGRAM,0},