diff options
author | Jared D. McNeill <jmcneill@NetBSD.org> | 2009-01-22 01:57:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-22 01:57:52 +0100 |
commit | 61075a78f7c6f1a2242e14b2fa347c5d611b1b5b (patch) | |
tree | a0d8ede623f28db7c23aa88e8be6c09ed8c91be7 /src | |
parent | ca6b79141bfa36231420b7adc6080faee5b63077 (diff) |
NetBSD doesn't know ENOLINK
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/oss/oss-util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/oss/oss-util.c b/src/modules/oss/oss-util.c index 41092d81..f04b875d 100644 --- 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; } |