mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-21 05:50:06 +02:00
acurater errno
This commit is contained in:
parent
a418632d4a
commit
a076805ca4
1 changed files with 2 additions and 2 deletions
|
|
@ -243,13 +243,13 @@ Errno TranslateNativeError(int e, CallType call_type = CallType::Other) {
|
|||
NETWORK_ERROR_ELEM(NOTSOCK) \
|
||||
NETWORK_ERROR_ELEM(ALREADY) \
|
||||
NETWORK_ERROR_ELEM(STALE)
|
||||
#define NETWORK_ERROR_ELEM(name) case E##name: return Errno::E_##name;
|
||||
#define NETWORK_ERROR_ELEM(name) case E##name: return Errno::E_#name;
|
||||
NETWORK_ERROR_LIST
|
||||
#undef NETWORK_ERROR_ELEM
|
||||
#undef NETWORK_ERROR_LIST
|
||||
default:
|
||||
UNIMPLEMENTED_MSG("Unimplemented errno={} ({})", e, strerror(e));
|
||||
return Errno::E_OTHER;
|
||||
return Errno::E_OPNOTSUPP;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue