Index: runtime/vm/os_thread_android.cc |
diff --git a/runtime/vm/os_thread_android.cc b/runtime/vm/os_thread_android.cc |
index f1c3a445838aef1bd2e4d965e87952340a2a63e4..f09e7f54f5ce3d760c774a67171380c20fde2733 100644 |
--- a/runtime/vm/os_thread_android.cc |
+++ b/runtime/vm/os_thread_android.cc |
@@ -11,6 +11,7 @@ |
#include <sys/time.h> // NOLINT |
#include "platform/assert.h" |
+#include "platform/utils.h" |
namespace dart { |
@@ -18,7 +19,7 @@ namespace dart { |
if (result != 0) { \ |
const int kBufferSize = 1024; \ |
char error_message[kBufferSize]; \ |
- strerror_r(result, error_message, kBufferSize); \ |
+ Utils::StrError(result, error_message, kBufferSize); \ |
FATAL2("pthread error: %d (%s)", result, error_message); \ |
} |
@@ -36,7 +37,7 @@ namespace dart { |
if (result != 0) { \ |
const int kBufferSize = 1024; \ |
char error_message[kBufferSize]; \ |
- strerror_r(result, error_message, kBufferSize); \ |
+ Utils::StrError(result, error_message, kBufferSize); \ |
fprintf(stderr, "%s:%d: pthread error: %d (%s)\n", \ |
__FILE__, __LINE__, result, error_message); \ |
return result; \ |