From aa70c06d8fbd29bf1b71584a699f83cd785b03cb Mon Sep 17 00:00:00 2001 From: Sreelakshmi Haridas Maruthur Date: Tue, 7 May 2024 11:03:02 -0600 Subject: [PATCH] Fix build breakage introduced by #1911 (#1958) --- test_common/harness/os_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_common/harness/os_helpers.cpp b/test_common/harness/os_helpers.cpp index e866f3e8..c64c5901 100644 --- a/test_common/harness/os_helpers.cpp +++ b/test_common/harness/os_helpers.cpp @@ -209,7 +209,7 @@ static std::string _err_msg(int err, int level) #if (defined(__ANDROID__) && __ANDROID_API__ < 23) \ || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) \ - || (defined(_GNU_SOURCE) && !defined(__GLIBC__)) + || (defined(_GNU_SOURCE) && !defined(__GLIBC__) && !defined(__USE_GNU)) // XSI version of strerror_r. #warning Not tested!