mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
NetBSD doesn't know ENOLINK
Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
parent
ca6b79141b
commit
61075a78f7
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue