Files
pkgsrc-ng/audio/alsa-lib/patches/patch-ad
2013-09-26 17:14:40 +02:00

25 lines
689 B
Plaintext

$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
@@ -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__) && !defined(__sun)
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */