Index: runtime/bin/thread_linux.cc |
diff --git a/runtime/bin/thread_linux.cc b/runtime/bin/thread_linux.cc |
index eaa4f2a7f68d9da257a301fb13f0e26335eae761..dc07de4bddf6a77019ff4013238532b37040c1a5 100644 |
--- a/runtime/bin/thread_linux.cc |
+++ b/runtime/bin/thread_linux.cc |
@@ -12,6 +12,7 @@ |
#include <sys/time.h> // NOLINT |
#include "platform/assert.h" |
+#include "platform/utils.h" |
namespace dart { |
namespace bin { |
@@ -21,7 +22,7 @@ namespace bin { |
const int kBufferSize = 1024; \ |
char error_buf[kBufferSize]; \ |
FATAL2("pthread error: %d (%s)", result, \ |
- strerror_r(result, error_buf, kBufferSize)); \ |
+ Utils::StrError(result, error_buf, kBufferSize)); \ |
} |
@@ -32,7 +33,7 @@ namespace bin { |
char error_buf[kBufferSize]; \ |
fprintf(stderr, "%s:%d: pthread error: %d (%s)\n", \ |
__FILE__, __LINE__, result, \ |
- strerror_r(result, error_buf, kBufferSize)); \ |
+ Utils::StrError(result, error_buf, kBufferSize)); \ |
return result; \ |
} |
#else |