Fix TOS stuff for BSD
authorMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 23:35:17 +0000 (23:35 +0000)
committerMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 23:35:17 +0000 (23:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.c
channels/chan_sip.c

index f185ce7..fda8698 100755 (executable)
@@ -32,6 +32,7 @@
 #include <arpa/inet.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <sys/time.h>
 #include <sys/signal.h>
 
 #include "iax.h"
 
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
 /*
  * Uncomment to try experimental IAX bridge optimization,
  * designed to reduce latency when IAX calls cannot
index 1aaf288..2a54792 100755 (executable)
@@ -34,6 +34,7 @@
 #include <arpa/inet.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <sys/time.h>
 #include <sys/signal.h>
 #include "iax2.h"
 #include "iax2-parser.h"
 
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
 /*
  * Uncomment to try experimental IAX bridge optimization,
  * designed to reduce latency when IAX calls cannot
index 083b3c9..8f88315 100755 (executable)
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <sys/signal.h>
+#include <netinet/in_systm.h>
 #include <netinet/ip.h>
 
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
 /* #define VOCAL_DATA_HACK */
 
 #define SIPDUMPER