openbsd-ports/www/iridium/patches/patch-third_party_nasm_BUILD_gn
2022-03-28 10:49:12 +00:00

18 lines
485 B
Plaintext

Index: third_party/nasm/BUILD.gn
--- third_party/nasm/BUILD.gn.orig
+++ 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.