mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
12 lines
383 B
Diff
12 lines
383 B
Diff
--- a/src/core/util.c
|
|
+++ b/src/core/util.c
|
|
@@ -972,7 +972,7 @@
|
|
#ifdef JANET_WINDOWS
|
|
/* Microsoft strerror seems sane here and is thread safe by default */
|
|
return strerror(e);
|
|
-#elif defined(_GNU_SOURCE)
|
|
+#elif defined(__GLIBC__)
|
|
/* See https://linux.die.net/man/3/strerror_r */
|
|
return strerror_r(e, janet_vm.strerror_buf, sizeof(janet_vm.strerror_buf));
|
|
#else
|