diff options
| author | 2016-10-10 16:36:55 +0000 | |
|---|---|---|
| committer | 2016-10-27 23:28:30 +0000 | |
| commit | 702439b5191589c7dbbc74afa41a79a85c3664ef (patch) | |
| tree | 59ebb92209ed672abbb039167c872911dfe15199 | |
| parent | common: use system bswap* functions on more BSDs (diff) | |
| download | yuzu-702439b5191589c7dbbc74afa41a79a85c3664ef.tar.gz yuzu-702439b5191589c7dbbc74afa41a79a85c3664ef.tar.xz yuzu-702439b5191589c7dbbc74afa41a79a85c3664ef.zip | |
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},
^
| -rw-r--r-- | src/core/hle/service/soc_u.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 4279b67fb..46b75db25 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp | |||
| @@ -104,7 +104,9 @@ static const std::unordered_map<int, int> error_map = {{ | |||
| 104 | {ERRNO(ENETUNREACH), 40}, | 104 | {ERRNO(ENETUNREACH), 40}, |
| 105 | {ENFILE, 41}, | 105 | {ENFILE, 41}, |
| 106 | {ERRNO(ENOBUFS), 42}, | 106 | {ERRNO(ENOBUFS), 42}, |
| 107 | #ifdef ENODATA | ||
| 107 | {ENODATA, 43}, | 108 | {ENODATA, 43}, |
| 109 | #endif | ||
| 108 | {ENODEV, 44}, | 110 | {ENODEV, 44}, |
| 109 | {ENOENT, 45}, | 111 | {ENOENT, 45}, |
| 110 | {ENOEXEC, 46}, | 112 | {ENOEXEC, 46}, |
| @@ -114,8 +116,12 @@ static const std::unordered_map<int, int> error_map = {{ | |||
| 114 | {ENOMSG, 50}, | 116 | {ENOMSG, 50}, |
| 115 | {ERRNO(ENOPROTOOPT), 51}, | 117 | {ERRNO(ENOPROTOOPT), 51}, |
| 116 | {ENOSPC, 52}, | 118 | {ENOSPC, 52}, |
| 119 | #ifdef ENOSR | ||
| 117 | {ENOSR, 53}, | 120 | {ENOSR, 53}, |
| 121 | #endif | ||
| 122 | #ifdef ENOSTR | ||
| 118 | {ENOSTR, 54}, | 123 | {ENOSTR, 54}, |
| 124 | #endif | ||
| 119 | {ENOSYS, 55}, | 125 | {ENOSYS, 55}, |
| 120 | {ERRNO(ENOTCONN), 56}, | 126 | {ERRNO(ENOTCONN), 56}, |
| 121 | {ENOTDIR, 57}, | 127 | {ENOTDIR, 57}, |
| @@ -136,7 +142,9 @@ static const std::unordered_map<int, int> error_map = {{ | |||
| 136 | {ESPIPE, 72}, | 142 | {ESPIPE, 72}, |
| 137 | {ESRCH, 73}, | 143 | {ESRCH, 73}, |
| 138 | {ERRNO(ESTALE), 74}, | 144 | {ERRNO(ESTALE), 74}, |
| 145 | #ifdef ETIME | ||
| 139 | {ETIME, 75}, | 146 | {ETIME, 75}, |
| 147 | #endif | ||
| 140 | {ERRNO(ETIMEDOUT), 76}, | 148 | {ERRNO(ETIMEDOUT), 76}, |
| 141 | }}; | 149 | }}; |
| 142 | 150 | ||