Ignore:
Timestamp:
Jan 8, 2008 4:02:33 PM (16 years ago)
Author:
bennylp
Message:

Fixed compilation error about IFF_UP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ip_helper_generic.c

    r1613 r1668  
    5353    /* dummy */ 
    5454 
    55 #elif defined(PJ_HAS_IFADDRS_H) && PJ_HAS_IFADDRS_H != 0 
     55#elif defined(PJ_HAS_IFADDRS_H) && PJ_HAS_IFADDRS_H != 0 && \ 
     56      defined(PJ_HAS_NET_IF_H) && PJ_HAS_NET_IF_H != 0 
    5657/* Using getifaddrs() is preferred since it can work with both IPv4 and IPv6 */ 
    5758static pj_status_t if_enum_by_af(int af, 
     
    109110} 
    110111 
    111 #elif defined(SIOCGIFCONF) 
     112#elif defined(SIOCGIFCONF) && \ 
     113      defined(PJ_HAS_NET_IF_H) && PJ_HAS_NET_IF_H != 0 
     114 
    112115/* Note: this does not work with IPv6 */ 
    113116static pj_status_t if_enum_by_af(int af, 
Note: See TracChangeset for help on using the changeset viewer.