summaryrefslogtreecommitdiff
path: root/audio/alsa-lib/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'audio/alsa-lib/patches/patch-ad')
-rw-r--r--audio/alsa-lib/patches/patch-ad17
1 files changed, 14 insertions, 3 deletions
diff --git a/audio/alsa-lib/patches/patch-ad b/audio/alsa-lib/patches/patch-ad
index dd35627bd9e..2f34ee33beb 100644
--- a/audio/alsa-lib/patches/patch-ad
+++ b/audio/alsa-lib/patches/patch-ad
@@ -1,13 +1,24 @@
-$NetBSD: patch-ad,v 1.2 2008/12/25 13:18:00 hasso Exp $
+$NetBSD: patch-ad,v 1.3 2012/02/15 19:43:51 hans Exp $
--- include/global.h.orig 2008-10-29 08:42:10.000000000 -0400
+++ include/global.h
-@@ -133,7 +133,7 @@ int snd_shm_area_destroy(struct snd_shm_
+@@ -31,6 +31,10 @@
+ /* for timeval and timespec */
+ #include <time.h>
+
++#ifdef __sun
++#include <alloca.h>
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+@@ -133,7 +137,7 @@ int snd_shm_area_destroy(struct snd_shm_
int snd_user_file(const char *file, char **result);
-#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
-+#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__NetBSD__) && !defined(__DragonFly__)
++#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__sun)
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */