We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7104878 commit 21e0ec0Copy full SHA for 21e0ec0
src/shared/platform/posix/nacl_error.c
@@ -10,8 +10,16 @@
10
#include "native_client/src/include/build_config.h"
11
#include "native_client/src/shared/platform/nacl_error.h"
12
13
+#if defined(__native_client__)
14
+ #define HAS_GNU_STRERROR_R
15
+#elif NACL_LINUX && !NACL_ANDROID
16
17
+#elif NACL_ANDROID && (__ANDROID_MIN_SDK_VERSION__ > 22)
18
19
+#endif
20
+
21
int NaClGetLastErrorString(char* buffer, size_t length) {
-#if defined(__native_client__) || (NACL_LINUX && !NACL_ANDROID)
22
+#if defined(HAS_GNU_STRERROR_R)
23
char* message;
24
/*
25
* Note some Linux distributions and newlib provide only the GNU version of
0 commit comments