diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-22 18:00:25 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-22 18:00:25 +0100 |
commit | 0737819efdd0bae112d16d874cac7e747e43cd08 (patch) | |
tree | 98a9ac84f7f347ae530c14852c68870682f3d04c /tests/strerror_r.c | |
parent | 163a663518f33bab48b28431972e580b366b4d49 (diff) | |
parent | e670957a8693f860cf7d77fed4ce6b4b056a8083 (diff) |
Merge branch 'release/debian/1.3-1'debian/1.3-1
Diffstat (limited to 'tests/strerror_r.c')
-rw-r--r-- | tests/strerror_r.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/strerror_r.c b/tests/strerror_r.c index 0cd28ade..87fc1142 100644 --- a/tests/strerror_r.c +++ b/tests/strerror_r.c @@ -34,7 +34,7 @@ #include "strerror-override.h" -#if STRERROR_R_CHAR_P +#if STRERROR_R_CHAR_P && !defined _AIX # if HAVE___XPG_STRERROR_R _GL_EXTERN_C int __xpg_strerror_r (int errnum, char *buf, size_t buflen); @@ -159,7 +159,10 @@ strerror_r (int errnum, char *buf, size_t buflen) int ret; int saved_errno = errno; -#if STRERROR_R_CHAR_P + /* Due to the '#undef strerror_r' above, on AIX, we're always using + the POSIX-compatible strerror_r function, regardless whether + _LINUX_SOURCE_COMPAT is defined or not. */ +#if STRERROR_R_CHAR_P && !defined _AIX { ret = 0; |