Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Unified Diff: pkg/os/lib/src/errno.dart

Issue 2203023002: Make arch-specific constants dependent on sys.info().machine (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Minor modifications. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/os/lib/src/system_linux.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/os/lib/src/errno.dart
diff --git a/pkg/os/lib/src/errno.dart b/pkg/os/lib/src/errno.dart
index 60a7c65807ccbb50dee59cb4790d9f19e5bf01a6..487b5ef191dd7fc28bc82de2cb165ddb0ac346a4 100644
--- a/pkg/os/lib/src/errno.dart
+++ b/pkg/os/lib/src/errno.dart
@@ -101,8 +101,9 @@ abstract class _PosixErrnos extends Errnos {
}
class _LinuxErrnos extends _PosixErrnos {
- int get EADDRNOTAVAIL => 99;
- int get EINPROGRESS => 115;
+ static final bool isMips = sys.info().machine == 'mips';
+ int get EADDRNOTAVAIL => isMips ? 126 : 99;
+ int get EINPROGRESS => isMips ? 150 : 115;
}
class _MacOSErrnos extends _PosixErrnos {
« no previous file with comments | « no previous file | pkg/os/lib/src/system_linux.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698