portability fixes for NetBSD (issue #5151)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Sep 2005 02:24:02 +0000 (02:24 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Sep 2005 02:24:02 +0000 (02:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

acl.c

diff --git a/acl.c b/acl.c
index 4d6fcdc..dbb55c9 100755 (executable)
--- a/acl.c
+++ b/acl.c
 #include <net/route.h>
 #endif
 
 #include <net/route.h>
 #endif
 
-#if defined (SOLARIS) || defined(__OpenBSD__)
+#if defined(SOLARIS)
 #include <sys/sockio.h>
 #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
 #define       IPTOS_LOWCOST           0x02
+#endif
+
+#if !defined(IPTOS_MINCOST)
 #define       IPTOS_MINCOST           IPTOS_LOWCOST
 #endif
 
 #define       IPTOS_MINCOST           IPTOS_LOWCOST
 #endif