summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-11-17 10:27:34 +0000
committerBenny Prijono <bennylp@teluu.com>2007-11-17 10:27:34 +0000
commit54f99f73d8f744c4558645906c99cbab480f5b8c (patch)
tree386070c03c26f0d1c703e8e19654d82cecff22e5 /pjlib/include/pj/compat
parentf840a19eb406297268e9a86c639bfe9352aab2b9 (diff)
Ticket #414: Implement IP interface enumeration on Linux/Unix with SIOCGIFCONF ioctl() call to a socket
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1584 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat')
-rw-r--r--pjlib/include/pj/compat/os_auto.h.in1
-rw-r--r--pjlib/include/pj/compat/socket.h5
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 b1292373..58bf8690 100644
--- a/pjlib/include/pj/compat/os_auto.h.in
+++ b/pjlib/include/pj/compat/os_auto.h.in
@@ -51,6 +51,7 @@
#undef PJ_HAS_NETDB_H
#undef PJ_HAS_NETINET_IN_H
#undef PJ_HAS_NETINET_IP_H
+#undef PJ_HAS_NET_IF_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 40c03455..7cc0d654 100644
--- a/pjlib/include/pj/compat/socket.h
+++ b/pjlib/include/pj/compat/socket.h
@@ -57,6 +57,11 @@
# include <netinet/ip.h>
#endif
+#if defined(PJ_HAS_NET_IF_H) && PJ_HAS_NET_IF_H != 0
+/* For interface enumeration in ip_helper */
+# include <net/if.h>
+#endif
+
#if defined(PJ_HAS_ARPA_INET_H) && PJ_HAS_ARPA_INET_H != 0
# include <arpa/inet.h>
#endif