summaryrefslogtreecommitdiff
path: root/aplay/aplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'aplay/aplay.c')
-rw-r--r--aplay/aplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c
index 6c4c67b..d6b2e80 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -29,7 +29,9 @@
#define _GNU_SOURCE
#include "aconfig.h"
#include <stdio.h>
+#if HAVE_MALLOC_H
#include <malloc.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
@@ -53,6 +55,7 @@
#include "gettext.h"
#include "formats.h"
#include "version.h"
+#include "os_compat.h"
#define ABS(a) (a) < 0 ? -(a) : (a)