diff --git a/apps/Makefile b/apps/Makefile index 8f2f4f5e65..d66ff31493 100755 --- a/apps/Makefile +++ b/apps/Makefile @@ -53,6 +53,9 @@ APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; f CURLLIBS=$(shell curl-config --libs) ifneq (${CURLLIBS},) APPS+=app_curl.so + ifeq (${OSARCH},OpenBSD) + CFLAGS+=-I/usr/local/include + endif endif CFLAGS+=-fPIC diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 9644eed1b1..7c0e7bda64 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -39,7 +39,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__) #include #include #endif @@ -47,7 +47,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OSX__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__OSX__) #include #include #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);