avoid EPROTO in case not there (Tim Wiess)
This commit is contained in:
parent
1866bcc995
commit
6007b4d97b
1 changed files with 4 additions and 0 deletions
|
|
@ -41,7 +41,11 @@ static Error errortab[] = {
|
||||||
{ "illegal", EINVAL },
|
{ "illegal", EINVAL },
|
||||||
{ "read-only", EROFS },
|
{ "read-only", EROFS },
|
||||||
{ "read only", EROFS },
|
{ "read only", EROFS },
|
||||||
|
#ifdef EPROTO
|
||||||
{ "proto", EPROTO },
|
{ "proto", EPROTO },
|
||||||
|
#else
|
||||||
|
{ "proto", EINVAL },
|
||||||
|
#endif
|
||||||
{ "entry", ENOENT },
|
{ "entry", ENOENT },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue