summaryrefslogtreecommitdiff
path: root/audio/portaudio-devel/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-30 08:29:00 +0000
committerjoerg <joerg>2007-07-30 08:29:00 +0000
commite37a06f86cd8bf15b347005542f17c20b12a12fc (patch)
treeb1ad7023d6f71dd2894528e3dfa44b81446219c9 /audio/portaudio-devel/patches
parenta05e1d8354146c7ddbb72d222a8d77e4e20c7d91 (diff)
downloadpkgsrc-e37a06f86cd8bf15b347005542f17c20b12a12fc.tar.gz
Use stdlib.h instead of malloc.h.
Diffstat (limited to 'audio/portaudio-devel/patches')
-rw-r--r--audio/portaudio-devel/patches/patch-ac8
1 files changed, 5 insertions, 3 deletions
diff --git a/audio/portaudio-devel/patches/patch-ac b/audio/portaudio-devel/patches/patch-ac
index 35c845bab4c..c01b4ac6ff9 100644
--- a/audio/portaudio-devel/patches/patch-ac
+++ b/audio/portaudio-devel/patches/patch-ac
@@ -1,17 +1,19 @@
-$NetBSD: patch-ac,v 1.2 2006/06/06 15:48:34 joerg Exp $
+$NetBSD: patch-ac,v 1.3 2007/07/30 08:29:00 joerg Exp $
--- src/hostapi/oss/pa_unix_oss.c.orig 2006-05-17 08:02:24.000000000 +0000
+++ src/hostapi/oss/pa_unix_oss.c
-@@ -42,7 +42,9 @@
+@@ -42,8 +42,10 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <pthread.h>
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
#include <alloca.h>
+-#include <malloc.h>
+#endif
- #include <malloc.h>
++#include <stdlib.h>
#include <assert.h>
#include <errno.h>
+ #include <sys/types.h>
@@ -52,12 +54,15 @@
#include <limits.h>
#include <semaphore.h>