$NetBSD: patch-configure,v 1.5 2025/08/02 17:39:29 adam Exp $ Cannot use malloc on this target (NetBSD, Solaris), so, we revert to alternative means. Important is *-*-netbsd* and the change from *-pc-solaris* to *-*-solaris*. --- configure.orig 2025-08-02 06:44:34.000000000 +0000 +++ configure @@ -20960,7 +20960,7 @@ case "$target" in printf "%s\n" "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h ;; - *-apple-* | *-*-dragonfly* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*) + *-apple-* | *-*-dragonfly* | *-*-freebsd* | *-*-kfreebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris* | *-linux-android*) printf "%s\n" "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h