From 702439b5191589c7dbbc74afa41a79a85c3664ef Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 10 Oct 2016 16:36:55 +0000 Subject: 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}, ^ --- src/core/hle/service/soc_u.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 error_map = {{ {ERRNO(ENETUNREACH), 40}, {ENFILE, 41}, {ERRNO(ENOBUFS), 42}, +#ifdef ENODATA {ENODATA, 43}, +#endif {ENODEV, 44}, {ENOENT, 45}, {ENOEXEC, 46}, @@ -114,8 +116,12 @@ static const std::unordered_map error_map = {{ {ENOMSG, 50}, {ERRNO(ENOPROTOOPT), 51}, {ENOSPC, 52}, +#ifdef ENOSR {ENOSR, 53}, +#endif +#ifdef ENOSTR {ENOSTR, 54}, +#endif {ENOSYS, 55}, {ERRNO(ENOTCONN), 56}, {ENOTDIR, 57}, @@ -136,7 +142,9 @@ static const std::unordered_map error_map = {{ {ESPIPE, 72}, {ESRCH, 73}, {ERRNO(ESTALE), 74}, +#ifdef ETIME {ETIME, 75}, +#endif {ERRNO(ETIMEDOUT), 76}, }}; -- cgit v1.2.3