str_error_r: check for __GLIBC__ instead of __LINUX__

This commit is contained in:
Alfred E. Heggestad 2012-08-10 07:41:05 +00:00
parent e0c341a412
commit e429834cec

View file

@ -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);