summaryrefslogtreecommitdiff
path: root/multimedia/mpv/patches/patch-audio_out_ao__alsa.c
blob: 6a67e505156e2d23e218d1958f28c9597b92ee71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-audio_out_ao__alsa.c,v 1.1 2019/06/01 01:15:54 tsutsui Exp $

- pull a compat definition of ESTRPIPE for non-Linux OSes
  from alsa-lib-1.1.4.1/include/type_compat.h

--- audio/out/ao_alsa.c.orig	2018-10-02 19:03:41.000000000 +0000
+++ audio/out/ao_alsa.c
@@ -49,6 +49,10 @@
 #define HAVE_CHMAP_API 0
 #endif
 
+#ifndef ESTRPIPE
+#define ESTRPIPE EPIPE
+#endif
+
 #include "ao.h"
 #include "internal.h"
 #include "audio/format.h"