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

Unified Diff: runtime/bin/stdio_android.cc

Issue 825533005: Fix Android build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_android.cc
diff --git a/runtime/bin/stdio_android.cc b/runtime/bin/stdio_android.cc
index d0ba85eff9aec7c4d824726e2a2ac8ff89d73600..a02a8e3d3f615630f2e659e4bf824f4fd4986b7b 100644
--- a/runtime/bin/stdio_android.cc
+++ b/runtime/bin/stdio_android.cc
@@ -65,9 +65,9 @@ void Stdin::SetLineMode(bool enabled) {
}
-bool Stdout::GetTerminalSize(int size[2]) {
+bool Stdout::GetTerminalSize(intptr_t fd, int size[2]) {
struct winsize w;
- if (NO_RETRY_EXPECTED(ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) == 0) &&
+ if (NO_RETRY_EXPECTED(ioctl(fd, TIOCGWINSZ, &w) == 0) &&
(w.ws_col != 0 || w.ws_row != 0)) {
size[0] = w.ws_col;
size[1] = w.ws_row;
@@ -80,4 +80,3 @@ bool Stdout::GetTerminalSize(int size[2]) {
} // namespace dart
#endif // defined(TARGET_OS_ANDROID)
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698