diff options
author | marcus <marcus@FreeBSD.org> | 2008-01-10 06:01:52 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2008-01-10 06:01:52 +0800 |
commit | c41ac00e8384536f397263b022d4135e9ab77f58 (patch) | |
tree | bb65250e9a2b681bb8f37c7e6e41caabdc31122e /audio | |
parent | aef77551d01cda4efc0a6b869b42793651dbdcd5 (diff) | |
download | freebsd-ports-gnome-c41ac00e8384536f397263b022d4135e9ab77f58.tar.gz freebsd-ports-gnome-c41ac00e8384536f397263b022d4135e9ab77f58.tar.zst freebsd-ports-gnome-c41ac00e8384536f397263b022d4135e9ab77f58.zip |
Fix the build on 5.X.
Reported by: pointyhat via erwin
Diffstat (limited to 'audio')
-rw-r--r-- | audio/pulseaudio/files/patch-src_modules_oss-util.c | 18 |
1 files 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; + } |