opnsense-ports/devel/electron22/files/patch-third__party_nasm_BUILD.gn
Franco Fichtner d016c42591 */*: sync with upstream
Taken from: FreeBSD
2023-01-30 10:59:54 +01:00

16 lines
476 B
Text

--- third_party/nasm/BUILD.gn.orig 2022-02-28 16:54:41 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.