Files
pkgsrc-ng/audio/alsa-lib/patches/patch-ad
2014-11-05 12:41:07 +01:00

25 lines
714 B
Plaintext

$NetBSD: patch-ad,v 1.4 2014/03/25 23:06:07 asau 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(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */