str_error_r: check for __GLIBC__ instead of __LINUX__
This commit is contained in:
parent
e0c341a412
commit
e429834cec
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const char *str_error(int errnum, char *buf, size_t sz)
|
|||
buf[0] = '\0';
|
||||
#ifdef HAVE_STRERROR_R
|
||||
|
||||
#ifdef LINUX
|
||||
#ifdef __GLIBC__
|
||||
s = strerror_r(errnum, buf, sz);
|
||||
#else
|
||||
(void)strerror_r(errnum, buf, sz);
|
||||
|
|
Loading…
Add table
Reference in a new issue