Index: runtime/bin/socket_android.cc |
diff --git a/runtime/bin/socket_android.cc b/runtime/bin/socket_android.cc |
index 02aed0bce9edc32d29c466aaa3047dd64c0335b4..abd2fc35cb2efe74965d8c794bcc5a6cda47490d 100644 |
--- a/runtime/bin/socket_android.cc |
+++ b/runtime/bin/socket_android.cc |
@@ -168,8 +168,8 @@ void Socket::GetError(intptr_t fd, OSError* os_error) { |
int Socket::GetType(intptr_t fd) { |
- struct stat buf; |
- int result = fstat(fd, &buf); |
+ struct stat64 buf; |
+ int result = fstat64(fd, &buf); |
if (result == -1) return -1; |
if (S_ISCHR(buf.st_mode)) return File::kTerminal; |
if (S_ISFIFO(buf.st_mode)) return File::kPipe; |