diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-19 15:20:29 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-23 18:08:10 +0000 |
| commit | 3ae8d83d04a7a6ec11b64c89ee60c180b0bde30e (patch) | |
| tree | 1a15235e0cb2ab23ca1bf4a44ad9b994a4fee8b1 /lib/libc/string/strerror.c | |
| parent | f695e960672ddc45744aca085c1e22c80928f447 (diff) | |
Diffstat (limited to 'lib/libc/string/strerror.c')
| -rw-r--r-- | lib/libc/string/strerror.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libc/string/strerror.c b/lib/libc/string/strerror.c index 11b9701d968f..bb685e4f7dc9 100644 --- a/lib/libc/string/strerror.c +++ b/lib/libc/string/strerror.c @@ -128,16 +128,11 @@ strerror_r(int errnum, char *strerrbuf, size_t buflen) char * strerror_l(int num, locale_t locale) { -#ifndef __NO_TLS static _Thread_local char ebuf[NL_TEXTMAX]; if (strerror_rl(num, ebuf, sizeof(ebuf), locale) != 0) errno = EINVAL; return (ebuf); -#else - errno = ENOTSUP; - return (NULL); -#endif } char * |
