$NetBSD: patch-src_3rdparty_chromium_third__party_zlib_BUILD.gn,v 1.4 2023/12/30 16:18:35 adam Exp $ --- src/3rdparty/chromium/third_party/zlib/BUILD.gn.orig 2022-12-08 15:31:50.000000000 +0000 +++ src/3rdparty/chromium/third_party/zlib/BUILD.gn @@ -129,7 +129,7 @@ if (use_arm_neon_optimizations) { # Disabled for iPhone, as described in DDI0487C_a_armv8_arm: # "All implementations of the ARMv8.1 architecture are required to # implement the CRC32* instructions. These are optional in ARMv8.0." - if (!is_ios && !use_qt) { + if (!is_ios && !use_qt && !is_netbsd) { defines = [ "CRC32_ARMV8_CRC32" ] if (is_android) { defines += [ "ARMV8_OS_ANDROID" ] @@ -455,7 +455,7 @@ static_library("bundled_minizip") { ] } - if (is_apple || is_android || is_nacl) { + if (is_apple || is_android || is_nacl || is_bsd) { # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We # use fopen, ftell, and fseek instead on these systems. defines = [ "USE_FILE32API" ]