aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sockpp/android-strerror_r.diff
blob: b594dbc927c84711d9376a77c89bb435f2b17f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/exception.cpp b/src/exception.cpp
index 72aae7e..7a56c60 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -66,7 +66,7 @@ string sys_error::error_str(int err)
 			buf, sizeof(buf), NULL);
     #else
     	#ifdef _GNU_SOURCE
-			#if !defined(__GLIBC__)
+			#if !defined(__GLIBC__) && !defined(__ANDROID__)
 			// use the XSI standard behavior.
 				int e = strerror_r(err, buf, sizeof(buf));
 				auto s = strerror(e);