summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat/socket.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-08-04 14:45:02 +0000
committerBenny Prijono <bennylp@teluu.com>2008-08-04 14:45:02 +0000
commit98dc6db2fc17166e04ffebe294928620eb604c44 (patch)
treea3685f58229daa98f678558ab6e035ba438188fc /pjlib/include/pj/compat/socket.h
parent789e340b0ef1e24911c9ed8ddc0507775f803129 (diff)
Fixed build error on FreeBSD (cannot use <netinet/ip.h> if <netinet/in_systm.h> is not included)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2190 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat/socket.h')
-rw-r--r--pjlib/include/pj/compat/socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pjlib/include/pj/compat/socket.h b/pjlib/include/pj/compat/socket.h
index 4551ad8f..eb0f870e 100644
--- a/pjlib/include/pj/compat/socket.h
+++ b/pjlib/include/pj/compat/socket.h
@@ -91,6 +91,11 @@
# include <netinet/in.h>
#endif
+#if defined(PJ_HAS_NETINET_IN_SYSTM_H) && PJ_HAS_NETINET_IN_SYSTM_H != 0
+/* Required to include netinet/ip.h in FreeBSD 7.0 */
+# include <netinet/in_systm.h>
+#endif
+
#if defined(PJ_HAS_NETINET_IP_H) && PJ_HAS_NETINET_IP_H != 0
/* To pull in IPTOS_* constants */
# include <netinet/ip.h>