1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 13:33:49 +01:00

Merge pull request #21162 from maribu/sys/tiny_strerror/fix-compilation-picolibc-ubuntu

sys/tiny_strerror: fix compilation with picolibc on Ubuntu
This commit is contained in:
benpicco 2025-01-24 13:10:00 +00:00 committed by GitHub
commit 95c0a62d5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,9 @@ static FLASH_ATTR const char _edquot[] = "-EDQUOT";
static FLASH_ATTR const char _eexist[] = "-EEXIST"; static FLASH_ATTR const char _eexist[] = "-EEXIST";
static FLASH_ATTR const char _efault[] = "-EFAULT"; static FLASH_ATTR const char _efault[] = "-EFAULT";
static FLASH_ATTR const char _efbig[] = "-EFBIG"; static FLASH_ATTR const char _efbig[] = "-EFBIG";
#ifdef EHOSTDOWN /* not part of POSIX and not universally available */
static FLASH_ATTR const char _ehostdown[] = "-EHOSTDOWN"; static FLASH_ATTR const char _ehostdown[] = "-EHOSTDOWN";
#endif
static FLASH_ATTR const char _ehostunreach[] = "-EHOSTUNREACH"; static FLASH_ATTR const char _ehostunreach[] = "-EHOSTUNREACH";
static FLASH_ATTR const char _eidrm[] = "-EIDRM"; static FLASH_ATTR const char _eidrm[] = "-EIDRM";
static FLASH_ATTR const char _eilseq[] = "-EILSEQ"; static FLASH_ATTR const char _eilseq[] = "-EILSEQ";
@ -93,7 +95,9 @@ static FLASH_ATTR const char _enxio[] = "-ENXIO";
static FLASH_ATTR const char _eoverflow[] = "-EOVERFLOW"; static FLASH_ATTR const char _eoverflow[] = "-EOVERFLOW";
static FLASH_ATTR const char _eownerdead[] = "-EOWNERDEAD"; static FLASH_ATTR const char _eownerdead[] = "-EOWNERDEAD";
static FLASH_ATTR const char _eperm[] = "-EPERM"; static FLASH_ATTR const char _eperm[] = "-EPERM";
#ifdef EPFNOSUPPORT /* not part of POSIX and not universally available */
static FLASH_ATTR const char _epfnosupport[] = "-EPFNOSUPPORT"; static FLASH_ATTR const char _epfnosupport[] = "-EPFNOSUPPORT";
#endif
static FLASH_ATTR const char _epipe[] = "-EPIPE"; static FLASH_ATTR const char _epipe[] = "-EPIPE";
static FLASH_ATTR const char _eprotonosupport[] = "-EPROTONOSUPPORT"; static FLASH_ATTR const char _eprotonosupport[] = "-EPROTONOSUPPORT";
static FLASH_ATTR const char _eprototype[] = "-EPROTOTYPE"; static FLASH_ATTR const char _eprototype[] = "-EPROTOTYPE";
@ -105,7 +109,9 @@ static FLASH_ATTR const char _esrch[] = "-ESRCH";
static FLASH_ATTR const char _estale[] = "-ESTALE"; static FLASH_ATTR const char _estale[] = "-ESTALE";
static FLASH_ATTR const char _etimedout[] = "-ETIMEDOUT"; static FLASH_ATTR const char _etimedout[] = "-ETIMEDOUT";
static FLASH_ATTR const char _etime[] = "-ETIME"; static FLASH_ATTR const char _etime[] = "-ETIME";
#ifdef ETOOMANYREFS /* not part of POSIX and not universally available */
static FLASH_ATTR const char _etoomanyrefs[] = "-ETOOMANYREFS"; static FLASH_ATTR const char _etoomanyrefs[] = "-ETOOMANYREFS";
#endif
static FLASH_ATTR const char _etxtbsy[] = "-ETXTBSY"; static FLASH_ATTR const char _etxtbsy[] = "-ETXTBSY";
static FLASH_ATTR const char _exdev[] = "-EXDEV"; static FLASH_ATTR const char _exdev[] = "-EXDEV";
/* EAGAIN and EWOULDBLOCK have the exact same meaning and consequently may /* EAGAIN and EWOULDBLOCK have the exact same meaning and consequently may
@ -143,7 +149,9 @@ static FLASH_ATTR const char * FLASH_ATTR const lookup[] = {
[EEXIST] = _eexist, [EEXIST] = _eexist,
[EFAULT] = _efault, [EFAULT] = _efault,
[EFBIG] = _efbig, [EFBIG] = _efbig,
#ifdef EHOSTDOWN /* not part of POSIX and not universally available */
[EHOSTDOWN] = _ehostdown, [EHOSTDOWN] = _ehostdown,
#endif
[EHOSTUNREACH] = _ehostunreach, [EHOSTUNREACH] = _ehostunreach,
[EIDRM] = _eidrm, [EIDRM] = _eidrm,
[EILSEQ] = _eilseq, [EILSEQ] = _eilseq,
@ -188,7 +196,9 @@ static FLASH_ATTR const char * FLASH_ATTR const lookup[] = {
[EOVERFLOW] = _eoverflow, [EOVERFLOW] = _eoverflow,
[EOWNERDEAD ] = _eownerdead, [EOWNERDEAD ] = _eownerdead,
[EPERM] = _eperm, [EPERM] = _eperm,
#ifdef EPFNOSUPPORT /* not part of POSIX and not universally available */
[EPFNOSUPPORT] = _epfnosupport, [EPFNOSUPPORT] = _epfnosupport,
#endif
[EPIPE] = _epipe, [EPIPE] = _epipe,
[EPROTONOSUPPORT] = _eprotonosupport, [EPROTONOSUPPORT] = _eprotonosupport,
[EPROTOTYPE] = _eprototype, [EPROTOTYPE] = _eprototype,
@ -200,7 +210,9 @@ static FLASH_ATTR const char * FLASH_ATTR const lookup[] = {
[ESTALE] = _estale, [ESTALE] = _estale,
[ETIMEDOUT] = _etimedout, [ETIMEDOUT] = _etimedout,
[ETIME] = _etime, [ETIME] = _etime,
#ifdef ETOOMANYREFS /* not part of POSIX and not universally available */
[ETOOMANYREFS] = _etoomanyrefs, [ETOOMANYREFS] = _etoomanyrefs,
#endif
[ETXTBSY] = _etxtbsy, [ETXTBSY] = _etxtbsy,
[EXDEV] = _exdev, [EXDEV] = _exdev,
#if EAGAIN != EWOULDBLOCK #if EAGAIN != EWOULDBLOCK