mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-19 23:23:22 +02:00
core: some errno values are uncommon on Unix
src/core/hle/service/soc_u.cpp:107:6: error: 'ENODATA' was not declared in this scope {ENODATA, 43}, ^ src/core/hle/service/soc_u.cpp:117:6: error: 'ENOSR' was not declared in this scope {ENOSR, 53}, ^ src/core/hle/service/soc_u.cpp:118:6: error: 'ENOSTR' was not declared in this scope {ENOSTR, 54}, ^ src/core/hle/service/soc_u.cpp:139:6: error: 'ETIME' was not declared in this scope {ETIME, 75}, ^
This commit is contained in:
parent
94d23b480e
commit
702439b519
@ -104,7 +104,9 @@ static const std::unordered_map<int, int> error_map = {{
|
|||||||
{ERRNO(ENETUNREACH), 40},
|
{ERRNO(ENETUNREACH), 40},
|
||||||
{ENFILE, 41},
|
{ENFILE, 41},
|
||||||
{ERRNO(ENOBUFS), 42},
|
{ERRNO(ENOBUFS), 42},
|
||||||
|
#ifdef ENODATA
|
||||||
{ENODATA, 43},
|
{ENODATA, 43},
|
||||||
|
#endif
|
||||||
{ENODEV, 44},
|
{ENODEV, 44},
|
||||||
{ENOENT, 45},
|
{ENOENT, 45},
|
||||||
{ENOEXEC, 46},
|
{ENOEXEC, 46},
|
||||||
@ -114,8 +116,12 @@ static const std::unordered_map<int, int> error_map = {{
|
|||||||
{ENOMSG, 50},
|
{ENOMSG, 50},
|
||||||
{ERRNO(ENOPROTOOPT), 51},
|
{ERRNO(ENOPROTOOPT), 51},
|
||||||
{ENOSPC, 52},
|
{ENOSPC, 52},
|
||||||
|
#ifdef ENOSR
|
||||||
{ENOSR, 53},
|
{ENOSR, 53},
|
||||||
|
#endif
|
||||||
|
#ifdef ENOSTR
|
||||||
{ENOSTR, 54},
|
{ENOSTR, 54},
|
||||||
|
#endif
|
||||||
{ENOSYS, 55},
|
{ENOSYS, 55},
|
||||||
{ERRNO(ENOTCONN), 56},
|
{ERRNO(ENOTCONN), 56},
|
||||||
{ENOTDIR, 57},
|
{ENOTDIR, 57},
|
||||||
@ -136,7 +142,9 @@ static const std::unordered_map<int, int> error_map = {{
|
|||||||
{ESPIPE, 72},
|
{ESPIPE, 72},
|
||||||
{ESRCH, 73},
|
{ESRCH, 73},
|
||||||
{ERRNO(ESTALE), 74},
|
{ERRNO(ESTALE), 74},
|
||||||
|
#ifdef ETIME
|
||||||
{ETIME, 75},
|
{ETIME, 75},
|
||||||
|
#endif
|
||||||
{ERRNO(ETIMEDOUT), 76},
|
{ERRNO(ETIMEDOUT), 76},
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user