From 613372dc7c50b1ddc64c79040e8e1ea7c57a3198 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Sat, 31 Dec 2022 16:03:34 +0900 Subject: Add OpenBSD support - ERESTART not supported platform: use EINTR instead - add include/os_compat.h, well-used OS specific definition - copied include/bswap.h from alsa-lib - EPIPE and ESTRPIPE are different usage, but currently EPIPE is used when ESTRPIPE is not defined. To fix this problem, assign ESPIPE instead. Fixes: https://github.com/alsa-project/alsa-utils/pull/186 Signed-off-by: SASANO Takayoshi Signed-off-by: Jaroslav Kysela --- aplay/aplay.c | 3 +++ aplay/formats.h | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'aplay') 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 +#if HAVE_MALLOC_H #include +#endif #include #include #include @@ -53,6 +55,7 @@ #include "gettext.h" #include "formats.h" #include "version.h" +#include "os_compat.h" #define ABS(a) (a) < 0 ? -(a) : (a) diff --git a/aplay/formats.h b/aplay/formats.h index ac0a2b0..093ab80 100644 --- a/aplay/formats.h +++ b/aplay/formats.h @@ -1,8 +1,7 @@ #ifndef FORMATS_H #define FORMATS_H 1 -#include -#include +#include "bswap.h" /* Definitions for .VOC files */ -- cgit v1.2.1