X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fstrerror.c;h=e050394b21778dcb12d7c221dc6b8e2383d0943c;hp=b0ced5dba5d308ba904276973f32c53575004009;hb=d77b84be585e9ceaed1501579df5a4aec6a24a63;hpb=540e01a59a43ba091b3b221bf00f1ee7df8cdf1f diff --git a/functions/string/strerror.c b/functions/string/strerror.c index b0ced5d..e050394 100644 --- a/functions/string/strerror.c +++ b/functions/string/strerror.c @@ -10,7 +10,7 @@ #ifndef REGTEST -#include +#include <_PDCLIB_locale.h> /* TODO: Doing this via a static array is not the way to do it. */ char * strerror( int errnum ) @@ -21,7 +21,7 @@ char * strerror( int errnum ) } else { - return _PDCLIB_lconv._PDCLIB_errno_texts[errnum]; + return _PDCLIB_threadlocale()->_ErrnoStr[errnum]; } }