diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-12-03 04:03:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-12-03 04:03:17 +0000 |
commit | bbf9483d22496d7f0ee1b7d9d71b16947162b679 (patch) | |
tree | 3a1bf1ca9c887bf78c6e0593f308026647ed380e /pjlib/include/pj/compat | |
parent | 66573305157f00a1440ada3f71e7fd471f99715b (diff) |
Fixed IP interface enumeration Linux to work with IPv6 (see ticket #415)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1612 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat')
-rw-r--r-- | pjlib/include/pj/compat/os_auto.h.in | 1 | ||||
-rw-r--r-- | pjlib/include/pj/compat/socket.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in index 336be7d5..5c1e6dff 100644 --- a/pjlib/include/pj/compat/os_auto.h.in +++ b/pjlib/include/pj/compat/os_auto.h.in @@ -52,6 +52,7 @@ #undef PJ_HAS_NETINET_IN_H #undef PJ_HAS_NETINET_IP_H #undef PJ_HAS_NET_IF_H +#undef PJ_HAS_IFADDRS_H #undef PJ_HAS_SETJMP_H #undef PJ_HAS_STDARG_H #undef PJ_HAS_STDDEF_H diff --git a/pjlib/include/pj/compat/socket.h b/pjlib/include/pj/compat/socket.h index b1a80da0..af1ed2e2 100644 --- a/pjlib/include/pj/compat/socket.h +++ b/pjlib/include/pj/compat/socket.h @@ -101,6 +101,11 @@ # include <net/if.h> #endif +#if defined(PJ_HAS_IFADDRS_H) && PJ_HAS_IFADDRS_H != 0 +/* Interface enum with getifaddrs() which works with IPv6 */ +# include <ifaddrs.h> +#endif + #if defined(PJ_HAS_ARPA_INET_H) && PJ_HAS_ARPA_INET_H != 0 # include <arpa/inet.h> #endif |