changeset 17635:db13b7295651

memalign segfaults when used without declaration on amd64 (default function return type is int so the pointer was trunctated to 32bits)
author aurel
date Thu, 16 Feb 2006 22:43:42 +0000
parents 8dc8353c4ee8
children b849a99cdc3c
files libmpcodecs/dec_audio.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c	Thu Feb 16 22:35:04 2006 +0000
+++ b/libmpcodecs/dec_audio.c	Thu Feb 16 22:43:42 2006 +0000
@@ -18,6 +18,10 @@
 
 #include "libaf/af.h"
 
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
 #ifdef DYNAMIC_PLUGINS
 #include <dlfcn.h>
 #endif