NetBSD doesn't know ENOLINK

Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
Jared D. McNeill 2009-01-22 01:57:52 +01:00 committed by Lennart Poettering
parent ca6b79141b
commit 61075a78f7

View file

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