Fix the build on 5.X.

Reported by:	pointyhat via erwin
This commit is contained in:
Joe Marcus Clarke 2008-01-09 22:01:52 +00:00
parent 285c577a40
commit 618de8d284
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205341

View file

@ -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;
}