From 618de8d284b3267132bd31d0211203e3f0ae82d0 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Wed, 9 Jan 2008 22:01:52 +0000 Subject: [PATCH] Fix the build on 5.X. Reported by: pointyhat via erwin --- .../files/patch-src_modules_oss-util.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/audio/pulseaudio/files/patch-src_modules_oss-util.c b/audio/pulseaudio/files/patch-src_modules_oss-util.c index bee800d5dc07..c1e68436fd66 100644 --- a/audio/pulseaudio/files/patch-src_modules_oss-util.c +++ b/audio/pulseaudio/files/patch-src_modules_oss-util.c @@ -1,6 +1,6 @@ ---- src/modules/oss-util.c.orig Sun Apr 29 19:53:31 2007 -+++ src/modules/oss-util.c Sun Apr 29 19:55:24 2007 -@@ -40,6 +40,22 @@ +--- modules/oss-util.c.orig 2007-11-08 21:45:25.000000000 -0500 ++++ modules/oss-util.c 2008-01-09 17:00:45.000000000 -0500 +@@ -44,6 +44,22 @@ #include "oss-util.h" @@ -23,3 +23,15 @@ int pa_oss_open(const char *device, int *mode, int* pcaps) { int fd = -1; int caps; +@@ -300,7 +316,11 @@ static int get_device_number(const char + int r; + + if (!(p = rp = pa_readlink(dev))) { ++#ifdef ENOLINK + if (errno != EINVAL && errno != ENOLINK) { ++#else ++ if (errno != EINVAL) { ++#endif + r = -1; + goto finish; + }