Changeset 4730:4bf43e9ae7ce in roaraudio


Ignore:
Timestamp:
01/19/11 14:36:23 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added additional AF_* checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r4718 r4730  
    499499 
    500500    switch (sockaddr.sa.sa_family) { 
    501 #ifdef AF_UNIX 
     501#if defined(AF_UNIX) && defined(ROAR_HAVE_UNIX) 
    502502     case AF_UNIX: 
    503503       rsockname->type = ROAR_SOCKET_TYPE_UNIX; 
     
    512512      break; 
    513513#endif 
    514 #ifdef AF_DECnet 
     514#if defined(AF_DECnet) && defined(ROAR_HAVE_LIBDNET) 
    515515     case AF_DECnet: 
    516516       rsockname->type = ROAR_SOCKET_TYPE_DECNET; 
     
    535535      break; 
    536536#endif 
    537 #ifdef AF_INET 
     537#if defined(AF_INET) && (defined(ROAR_HAVE_IPV4) || defined(ROAR_HAVE_IPV6)) 
    538538     case AF_INET: 
    539539       rsockname->type = ROAR_SOCKET_TYPE_INET; 
     
    542542      break; 
    543543#endif 
    544 #ifdef AF_INET6 
     544#if defined(AF_INET6) && defined(ROAR_HAVE_IPV6) 
    545545     case AF_INET6: 
    546546       rsockname->type = ROAR_SOCKET_TYPE_INET6; 
Note: See TracChangeset for help on using the changeset viewer.