- malloc.h breaks actively on FreeBSD for a long time, use stdlib.h as suggested; - treat FreeBSD uniformly with other BSD systems.
24 lines
714 B
Text
24 lines
714 B
Text
$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 */
|