mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05: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;
|
int r;
|
||||||
|
|
||||||
if (!(p = rp = pa_readlink(dev))) {
|
if (!(p = rp = pa_readlink(dev))) {
|
||||||
|
#ifdef ENOLINK
|
||||||
if (errno != EINVAL && errno != ENOLINK) {
|
if (errno != EINVAL && errno != ENOLINK) {
|
||||||
|
#else
|
||||||
|
if (errno != EINVAL) {
|
||||||
|
#endif
|
||||||
r = -1;
|
r = -1;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue