fix portaudio build on OpenBSD take 5

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2925 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2006-10-01 23:56:21 +00:00
parent aab161e9cd
commit 4d230d08e7

View File

@ -11,32 +11,29 @@ patch <<__EOF__
mingw* ) mingw* )
--- pa_unix_oss/pa_unix_oss.c.orig Sat Sep 30 20:46:55 2006 --- pa_unix_oss/pa_unix_oss.c.orig Sun Oct 1 19:57:15 2006
+++ pa_unix_oss/pa_unix_oss.c Sat Sep 30 20:46:13 2006 +++ pa_unix_oss/pa_unix_oss.c Sun Oct 1 20:00:01 2006
@@ -95,7 +95,9 @@ @@ -95,7 +95,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
+#ifndef __FreeBSD__ +#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <malloc.h> #include <malloc.h>
+#endif +#endif
#include <memory.h> #include <memory.h>
#include <math.h> #include <math.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@@ -109,6 +111,8 @@ @@ -109,6 +111,10 @@
#ifdef __linux__ #ifdef __linux__
#include <linux/soundcard.h> #include <linux/soundcard.h>
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) +#elif defined(__FreeBSD__) || defined(NetBSD)
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
+#include <sys/soundcard.h> +#include <sys/soundcard.h>
+#endif +#elif defined(__OpenBSD__)
+#include <soundard.h>
#else #else
#include <machine/soundcard.h> /* JH20010905 */ #include <machine/soundcard.h> /* JH20010905 */
#endif #endif
__EOF__ __EOF__
arch=`uname -m` arch=`uname -m`