portability fixes for NetBSD (issue #5151)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-09-08 02:24:02 +00:00
parent f77779b4fc
commit f00e5c6d8d

10
acl.c
View File

@@ -33,10 +33,16 @@
#include <net/route.h>
#endif
#if defined (SOLARIS) || defined(__OpenBSD__)
#if defined(SOLARIS)
#include <sys/sockio.h>
/* netinet/ip.h does not define the following (See RFCs 791 and 1349) */
#endif
/* netinet/ip.h may not define the following (See RFCs 791 and 1349) */
#if !defined(IPTOS_LOWCOST)
#define IPTOS_LOWCOST 0x02
#endif
#if !defined(IPTOS_MINCOST)
#define IPTOS_MINCOST IPTOS_LOWCOST
#endif