[Asterisk-cvs] asterisk acl.c,1.55,1.56

kpfleming kpfleming
Wed Sep 7 22:23:44 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1086

Modified Files:
	acl.c 
Log Message:
portability fixes for NetBSD (issue #5151)


Index: acl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/acl.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- acl.c	7 Sep 2005 21:01:30 -0000	1.55
+++ acl.c	8 Sep 2005 02:24:02 -0000	1.56
@@ -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
 




More information about the svn-commits mailing list