Index: runtime/bin/utils_linux.cc |
diff --git a/runtime/bin/utils_linux.cc b/runtime/bin/utils_linux.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f57a15bb8aaea74931b28c4e342dc0a160ccf868 |
--- /dev/null |
+++ b/runtime/bin/utils_linux.cc |
@@ -0,0 +1,12 @@ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+#include <errno.h> |
+ |
+#include "bin/utils.h" |
+ |
+OSError::OSError() : code_(0), message_(NULL) { |
+ set_code(errno); |
+ SetMessage(strerror(errno)); |
+} |