summaryrefslogtreecommitdiff
path: root/speaker-test
diff options
context:
space:
mode:
authorSASANO Takayoshi <uaa@uaa.org.uk>2022-12-31 16:03:34 +0900
committerJaroslav Kysela <perex@perex.cz>2023-02-03 13:08:44 +0100
commit613372dc7c50b1ddc64c79040e8e1ea7c57a3198 (patch)
treed7dd1ee8e3a3e0e918814c9bbaf5b25cc06e962d /speaker-test
parent1350900246e0462b584331be0df24e177e7b25be (diff)
downloadalsa-utils-613372dc7c50b1ddc64c79040e8e1ea7c57a3198.tar.gz
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 <uaa@uaa.org.uk> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'speaker-test')
-rw-r--r--speaker-test/speaker-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c
index fd13d88..d08893a 100644
--- a/speaker-test/speaker-test.c
+++ b/speaker-test/speaker-test.c
@@ -44,7 +44,7 @@
#include <getopt.h>
#include <inttypes.h>
#include <ctype.h>
-#include <byteswap.h>
+#include "bswap.h"
#include <signal.h>
#define ALSA_PCM_NEW_HW_PARAMS_API
@@ -56,6 +56,7 @@
#include "aconfig.h"
#include "gettext.h"
#include "version.h"
+#include "os_compat.h"
#ifdef ENABLE_NLS
#include <locale.h>