projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6b791
)
NetBSD doesn't know ENOLINK
author
Jared D. McNeill
<jmcneill@NetBSD.org>
Thu, 22 Jan 2009 00:57:52 +0000
(
01:57
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 22 Jan 2009 00:57:52 +0000
(
01:57
+0100)
Signed-off-by: Lennart Poettering <lennart@poettering.net>
src/modules/oss/oss-util.c
patch
|
blob
|
history
diff --git
a/src/modules/oss/oss-util.c
b/src/modules/oss/oss-util.c
index
41092d8
..
f04b875
100644
(file)
--- a/
src/modules/oss/oss-util.c
+++ b/
src/modules/oss/oss-util.c
@@
-309,7
+309,11
@@
static int get_device_number(const char *dev) {
int r;
if (!(p = rp = pa_readlink(dev))) {
+#ifdef ENOLINK
if (errno != EINVAL && errno != ENOLINK) {
+#else
+ if (errno != EINVAL) {
+#endif
r = -1;
goto finish;
}