Files
pkgsrc-ng/audio/alsa-utils/patches/patch-ad
2013-09-26 17:14:40 +02:00

24 lines
612 B
Plaintext

$NetBSD: patch-ad,v 1.5 2012/02/15 19:46:31 hans Exp $
--- speaker-test/speaker-test.c.orig 2009-12-16 15:18:52.000000000 +0000
+++ speaker-test/speaker-test.c
@@ -44,7 +44,18 @@
#include <getopt.h>
#include <inttypes.h>
#include <ctype.h>
+#if defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#define bswap_16 bswap16
+#define bswap_32 bswap32
+#define ESTRPIPE EPIPE
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define bswap_16 BSWAP_16
+#define bswap_32 BSWAP_32
+#else
#include <byteswap.h>
+#endif
#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API