aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/helpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 44dc21a8..494439ba 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -20,11 +20,13 @@
#include "config.h"
-#include <malloc.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <stdarg.h>
+#ifdef HAVE__ALIGNED_MALLOC
+#include <malloc.h>
+#endif
#if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H)
#define INITGUID