aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_dundi.c
diff options
context:
space:
mode:
authortwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-04 00:14:10 +0000
committertwisted <twisted@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-04 00:14:10 +0000
commit5322cb028b01dec8f24a00e155c60cc99b7266b3 (patch)
tree2e81b1ecc9b330b0e084dfcfda84d1ee16b5b34e /pbx/pbx_dundi.c
parentf18b92c3e323261f7b8a99e3cbf27063be5f9c3e (diff)
Fix build on OpenBSD and fix small typo. (Bug #3502)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4959 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_dundi.c')
-rwxr-xr-xpbx/pbx_dundi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 9644eed1b..7c0e7bda6 100755
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -39,7 +39,7 @@
#include <sys/socket.h>
#include <string.h>
#include <errno.h>
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__)
#include <sys/types.h>
#include <netinet/in_systm.h>
#endif
@@ -47,7 +47,7 @@
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/if.h>
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OSX__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__OSX__)
#include <net/if_dl.h>
#include <ifaddrs.h>
#endif
@@ -4534,14 +4534,14 @@ static int set_config(char *config_file, struct sockaddr_in* sin)
tos = IPTOS_THROUGHPUT;
else if (!strcasecmp(v->value, "reliability"))
tos = IPTOS_RELIABILITY;
-#if !defined(__NetBSD__) && !defined(SOLARIS)
+#if !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(SOLARIS)
else if (!strcasecmp(v->value, "mincost"))
tos = IPTOS_MINCOST;
#endif
else if (!strcasecmp(v->value, "none"))
tos = 0;
else
-#if defined(__NetBSD__) && !defined(SOLARIS)
+#if !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(SOLARIS)
ast_log(LOG_WARNING, "Invalid tos value at line %d, should be 'lowdelay', 'throughput', 'reliability', 'mincost', or 'none'\n", v->lineno);
#else
ast_log(LOG_WARNING, "Invalid tos value at line %d, should be 'lowdelay', 'throughput', 'reliability', or 'none'\n", v->lineno);