mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
15 lines
421 B
Diff
15 lines
421 B
Diff
reported upstream:
|
|
https://github.com/p11-glue/p11-kit/issues/147
|
|
|
|
--- ./common/message.c.orig
|
|
+++ ./common/message.c
|
|
@@ -118,7 +118,7 @@
|
|
buffer[length] = 0;
|
|
|
|
snprintf (strerr, sizeof (strerr), "Unknown error %d", errnum);
|
|
-#ifdef HAVE_STRERROR_L
|
|
+#if defined(HAVE_STRERROR_L) && defined(__GLIBC__)
|
|
loc = uselocale ((locale_t) 0);
|
|
if (loc != NULL)
|
|
strncpy (strerr, strerror_l (errnum, loc), sizeof (strerr));
|