lang/polyml: Fix build after libffi update

Add a patch to fix the build of lang/polyml after devel/libffi update.
This was missed in r541232.

PR:		247028 (for tracking)
This commit is contained in:
Niclas Zeising 2020-07-04 21:38:31 +00:00
parent 35cbe487f8
commit 9717515a2a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541238

View File

@ -0,0 +1,14 @@
--- libpolyml/polyffi.cpp.orig 2017-11-18 13:45:15 UTC
+++ libpolyml/polyffi.cpp
@@ -108,9 +108,10 @@ static struct _abiTable { const char *abiName; ffi_abi
{"ms_cdecl", FFI_MS_CDECL},
#elif defined(X86_WIN64)
{"win64", FFI_WIN64},
+#elif defined(X86_64) || (defined (__x86_64__) && defined (X86_DARWIN))
+ {"unix64", FFI_UNIX64},
#elif defined(X86_ANY)
{"sysv", FFI_SYSV},
- {"unix64", FFI_UNIX64},
#endif
{ "default", FFI_DEFAULT_ABI}
};