Skip to content

Commit c5fec64

Browse files
committed
Fix darwin platform.
1 parent 862895e commit c5fec64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

substratevm/src/com.oracle.svm.truffle.nfi.posix/src/com/oracle/svm/truffle/nfi/posix/PosixTruffleNFIFeature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ protected CCharPointer strdupImpl(CCharPointer src) {
9595
return PosixLibC.strdup(src);
9696
}
9797

98+
@Platforms(Platform.LINUX.class)
9899
private static PointerBase dlmopen(Lmid_t lmid, String filename, int mode) {
99100
try (CTypeConversion.CCharPointerHolder pathPin = CTypeConversion.toCString(filename)) {
100101
CCharPointer pathPtr = pathPin.get();
@@ -105,6 +106,7 @@ private static PointerBase dlmopen(Lmid_t lmid, String filename, int mode) {
105106
/**
106107
* A single linking namespace is created lazily and registered on the NFI context instance.
107108
*/
109+
@Platforms(Platform.LINUX.class)
108110
private static PointerBase loadLibraryInNamespace(long nativeContext, String name, int mode) {
109111
assert (mode & isolatedNamespaceFlag) == 0;
110112
Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux context = SubstrateUtil.cast(getContext(nativeContext), Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux.class);

0 commit comments

Comments
 (0)