mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-24 20:50:47 +00:00
13 lines
457 B
Diff
13 lines
457 B
Diff
--- a/src/misc.c
|
|
+++ b/src/misc.c
|
|
@@ -1971,7 +1971,8 @@
|
|
*/
|
|
char *ssh_strerror(int err_num, char *buf, size_t buflen)
|
|
{
|
|
-#if ((defined(__linux__) && defined(__GLIBC__)) || defined(__CYGWIN__)) && defined(_GNU_SOURCE)
|
|
+#if ((defined(__linux__) && defined(__GLIBC__)) || defined(__CYGWIN__)) && defined(_GNU_SOURCE) \
|
|
+ || defined(__ANDROID__) && defined(__USE_GNU)
|
|
/* GNU extension on Linux */
|
|
return strerror_r(err_num, buf, buflen);
|
|
#else
|