This is an automated email from the ASF dual-hosted git repository.
cnauroth pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 54c61ad43f9 HADOOP-19776: revert exception.c change accidentally
included in prior commit
54c61ad43f9 is described below
commit 54c61ad43f91701bc9e5176252985b1231483a2a
Author: Chris Nauroth <[email protected]>
AuthorDate: Mon Jan 12 18:05:50 2026 +0000
HADOOP-19776: revert exception.c change accidentally included in prior
commit
---
.../hadoop-common/src/main/native/src/exception.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git
a/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
b/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
index 84c1ce30953..b4a9b812803 100644
--- a/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
+++ b/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
@@ -110,18 +110,15 @@ jthrowable newIOException(JNIEnv* env, const char *fmt,
...)
const char* terror(int errnum)
{
-/* STD_ERROR is the new standard. Alpine musc does not want to be 'detected'
it want to be pure and modern. Thus we detect the old glib and handle. */
-#ifdef __GLIBC__
- #if defined(__GLIBC_PREREQ)
- #if __GLIBC_PREREQ(2, 32)
- #define USE_STR_ERROR
- #endif
- #endif
-#else
+// MT-Safe under Solaris or glibc >= 2.32 not supporting sys_errlist/sys_nerr
+#if defined(__sun)
#define USE_STR_ERROR
+#elif defined(__GLIBC_PREREQ)
+ #if __GLIBC_PREREQ(2, 32)
+ #define USE_STR_ERROR
+ #endif
#endif
-
#if defined(USE_STR_ERROR)
return strerror(errnum);
#else
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]