From 4d230d08e75d999ea5cb215f7bd7c1a30291c4d7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 1 Oct 2006 23:56:21 +0000 Subject: [PATCH] fix portaudio build on OpenBSD take 5 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2925 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/portaudio.build.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/libs/portaudio.build.sh b/libs/portaudio.build.sh index 5a82be7627..c27042c938 100755 --- a/libs/portaudio.build.sh +++ b/libs/portaudio.build.sh @@ -11,32 +11,29 @@ patch <<__EOF__ mingw* ) ---- pa_unix_oss/pa_unix_oss.c.orig Sat Sep 30 20:46:55 2006 -+++ pa_unix_oss/pa_unix_oss.c Sat Sep 30 20:46:13 2006 +--- pa_unix_oss/pa_unix_oss.c.orig Sun Oct 1 19:57:15 2006 ++++ pa_unix_oss/pa_unix_oss.c Sun Oct 1 20:00:01 2006 @@ -95,7 +95,9 @@ - + #include #include -+#ifndef __FreeBSD__ ++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) #include +#endif #include #include #include -@@ -109,6 +111,8 @@ - +@@ -109,6 +111,10 @@ + #ifdef __linux__ #include -+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) -+#ifdef __OpenBSD__ -+#include -+#else ++#elif defined(__FreeBSD__) || defined(NetBSD) +#include -+#endif ++#elif defined(__OpenBSD__) ++#include #else #include /* JH20010905 */ #endif - __EOF__ arch=`uname -m`