提交 b56f0a0e authored 作者: Michael Jerris's avatar Michael Jerris

fix portaudio build on FreeBSD

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2910 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ea0d99ef
......@@ -10,6 +10,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
@@ -95,7 +95,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef __FreeBSD__
#include <malloc.h>
+#endif
#include <memory.h>
#include <math.h>
#include <sys/ioctl.h>
@@ -109,6 +111,8 @@
#ifdef __linux__
#include <linux/soundcard.h>
+#elif defined(__FreeBSD__)
+#include <sys/soundcard.h>
#else
#include <machine/soundcard.h> /* JH20010905 */
#endif
__EOF__
arch=`uname -m`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论