Use __Fuchsia__ definition instead of __fuchsia__ Change-Id: I402300e4694fffc658a7cbf25ecd7690ed677c2c
diff --git a/patches/binutils-patch.txt b/patches/binutils-patch.txt index e24e86d..8394575 100644 --- a/patches/binutils-patch.txt +++ b/patches/binutils-patch.txt
@@ -222,7 +222,7 @@ return NULL; } -+ #ifdef __fuchsia__ ++ #ifdef __Fuchsia__ + /* Fuchsia provides an unimplemented pread, which is sufficient to convince + configure into linking against it. */ + extern "C" { @@ -245,7 +245,7 @@ size_t to_read = size; do { -+ #ifdef __fuchsia__ ++ #ifdef __Fuchsia__ + bytes = fuchsia_pread(this->descriptor_, read_ptr, to_read, read_pos); + #else bytes = ::pread(this->descriptor_, read_ptr, to_read, read_pos); @@ -272,10 +272,10 @@ static int gold_fallocate(int o, off_t offset, off_t len) { -! #if defined(HAVE_POSIX_FALLOCATE) && !defined(__fuchsia__) +! #if defined(HAVE_POSIX_FALLOCATE) && !defined(__Fuchsia__) if (parameters->options().posix_fallocate()) return ::posix_fallocate(o, offset, len); -! #endif // defined(HAVE_POSIX_FALLOCATE) && !defined(__fuchsia__) +! #endif // defined(HAVE_POSIX_FALLOCATE) && !defined(__Fuchsia__) #ifdef HAVE_FALLOCATE if (::fallocate(o, 0, offset, len) == 0) return 0;