Changeset 519:245b982566c1 in roaraudio


Ignore:
Timestamp:
08/15/08 14:29:25 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

-6 gives error now if no IPv6 support is compiled in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r518 r519  
    240240    server = ROAR_DEFAULT_HOST; 
    241241  } else if ( strcmp(k, "-6") == 0 ) { 
     242#ifdef PF_INET6 
    242243   sock_type = ROAR_SOCKET_TYPE_TCP6; 
    243244   if ( *server == '/' ) 
    244245    server = ROAR_DEFAULT_HOST; 
     246#else 
     247    ROAR_ERR("No IPv6 support compiled in!"); 
     248    return 1; 
     249#endif 
    245250 
    246251  } else if ( strcmp(k, "-u") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.