diff options
Diffstat (limited to 'devel/electron18/files/patch-third__party_nasm_BUILD.gn')
-rw-r--r-- | devel/electron18/files/patch-third__party_nasm_BUILD.gn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/electron18/files/patch-third__party_nasm_BUILD.gn b/devel/electron18/files/patch-third__party_nasm_BUILD.gn new file mode 100644 index 000000000000..485d406e48da --- /dev/null +++ b/devel/electron18/files/patch-third__party_nasm_BUILD.gn @@ -0,0 +1,16 @@ +--- third_party/nasm/BUILD.gn.orig 2022-05-11 07:04:45 UTC ++++ third_party/nasm/BUILD.gn +@@ -59,6 +59,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*" ]) ++ if (_mempcpy != []) { ++ defines += [ "HAVE_MEMPCPY=1" ] ++ } ++ + if (is_clang) { + cflags = [ + # The inline functions in NASM's headers flag this. |