Index: runtime/bin/socket_macos.cc |
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc |
index 9806c6f0aa99548661bec01cb7761aadd1dd83e9..4b6ead679101ec4dcb397fa0c340f5a688224f48 100644 |
--- a/runtime/bin/socket_macos.cc |
+++ b/runtime/bin/socket_macos.cc |
@@ -168,8 +168,8 @@ void Socket::GetError(intptr_t fd, OSError* os_error) { |
int Socket::GetType(intptr_t fd) { |
- struct stat64 buf; |
- int result = fstat64(fd, &buf); |
+ struct stat buf; |
+ int result = fstat(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; |