aboutsummaryrefslogtreecommitdiffstats
path: root/acl.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-08 02:24:02 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-08 02:24:02 +0000
commit2bc1763642774e63b260abacfb08926164448232 (patch)
tree45b5f54f8660cefefae32549cca1c0da27b75dbf /acl.c
parent763faa7d02443b58d935a3f0d2fb8c4cef872360 (diff)
portability fixes for NetBSD (issue #5151)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6549 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/acl.c b/acl.c
index 4d6fcdc52..dbb55c9b3 100755
--- a/acl.c
+++ b/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