summaryrefslogtreecommitdiff
path: root/test/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pcm.c')
-rw-r--r--test/pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pcm.c b/test/pcm.c
index b8d4fe69..0484ea39 100644
--- a/test/pcm.c
+++ b/test/pcm.c
@@ -12,6 +12,10 @@
#include <sys/time.h>
#include <math.h>
+#ifndef ESTRPIPE
+#define ESTRPIPE ESPIPE
+#endif
+
static char *device = "plughw:0,0"; /* playback device */
static snd_pcm_format_t format = SND_PCM_FORMAT_S16; /* sample format */
static unsigned int rate = 44100; /* stream rate */