mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 10:27:22 +09:00
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:
committed by
Andreas Schneider
parent
bd2db30174
commit
8cf9c8162f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user