Do not force GNU_SOURCE during build to fix #141

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2022-08-29 12:48:34 +02:00
committed by Andreas Schneider
parent bd2db30174
commit 8cf9c8162f
3 changed files with 1 additions and 13 deletions

View File

@@ -1956,7 +1956,7 @@ char *ssh_strerror(int err_num, char *buf, size_t buflen)
#if defined(_WIN32)
strerror_s(buf, buflen, err_num);
return buf;
#elif defined(__linux__) && defined(_GNU_SOURCE)
#elif defined(__linux__) && defined(__GLIBC__) && defined(_GNU_SOURCE)
/* GNU extension on Linux */
return strerror_r(err_num, buf, buflen);
#else