diff --git a/www/chromium/files/patch-third__party_nasm_BUILD.gn b/www/chromium/files/patch-third__party_nasm_BUILD.gn index a056b77b8a9a..972f5a6a3831 100644 --- a/www/chromium/files/patch-third__party_nasm_BUILD.gn +++ b/www/chromium/files/patch-third__party_nasm_BUILD.gn @@ -1,16 +1,16 @@ ---- third_party/nasm/BUILD.gn.orig 2023-01-11 09:17:16 UTC +--- third_party/nasm/BUILD.gn.orig 2024-06-24 21:00:43 UTC +++ third_party/nasm/BUILD.gn @@ -63,6 +63,13 @@ config("nasm_config") { defines = [ "HAVE_CONFIG_H" ] + _string_h_lines = + read_file("/usr/include/string.h", "list lines") -+ _mempcpy = filter_include(_string_h_lines, [ "*\*mempcpy*" ]) ++ _mempcpy = filter_include(_string_h_lines, [ "*mempcpy*" ]) + if (_mempcpy != []) { + defines += [ "HAVE_MEMPCPY=1" ] + } + if (is_clang) { cflags = [ # The inline functions in NASM's headers flag this. diff --git a/www/iridium/files/patch-third__party_nasm_BUILD.gn b/www/iridium/files/patch-third__party_nasm_BUILD.gn index 55ef6aa4b880..972f5a6a3831 100644 --- a/www/iridium/files/patch-third__party_nasm_BUILD.gn +++ b/www/iridium/files/patch-third__party_nasm_BUILD.gn @@ -1,16 +1,16 @@ ---- third_party/nasm/BUILD.gn.orig 2023-01-17 19:19:00 UTC +--- third_party/nasm/BUILD.gn.orig 2024-06-24 21:00:43 UTC +++ third_party/nasm/BUILD.gn @@ -63,6 +63,13 @@ config("nasm_config") { defines = [ "HAVE_CONFIG_H" ] + _string_h_lines = + read_file("/usr/include/string.h", "list lines") -+ _mempcpy = filter_include(_string_h_lines, [ "*\*mempcpy*" ]) ++ _mempcpy = filter_include(_string_h_lines, [ "*mempcpy*" ]) + if (_mempcpy != []) { + defines += [ "HAVE_MEMPCPY=1" ] + } + if (is_clang) { cflags = [ # The inline functions in NASM's headers flag this. diff --git a/www/ungoogled-chromium/files/patch-third__party_nasm_BUILD.gn b/www/ungoogled-chromium/files/patch-third__party_nasm_BUILD.gn index 6db291842f72..972f5a6a3831 100644 --- a/www/ungoogled-chromium/files/patch-third__party_nasm_BUILD.gn +++ b/www/ungoogled-chromium/files/patch-third__party_nasm_BUILD.gn @@ -1,16 +1,16 @@ ---- third_party/nasm/BUILD.gn.orig 2023-01-13 08:56:02 UTC +--- third_party/nasm/BUILD.gn.orig 2024-06-24 21:00:43 UTC +++ third_party/nasm/BUILD.gn @@ -63,6 +63,13 @@ config("nasm_config") { defines = [ "HAVE_CONFIG_H" ] + _string_h_lines = + read_file("/usr/include/string.h", "list lines") -+ _mempcpy = filter_include(_string_h_lines, [ "*\*mempcpy*" ]) ++ _mempcpy = filter_include(_string_h_lines, [ "*mempcpy*" ]) + if (_mempcpy != []) { + defines += [ "HAVE_MEMPCPY=1" ] + } + if (is_clang) { cflags = [ # The inline functions in NASM's headers flag this.