portability fixes for NetBSD (issue #5151)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent f77779b4fc
commit f00e5c6d8d

10
acl.c

@ -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

Loading…
Cancel
Save