Skip to content

Commit 92f7dd1

Browse files
Update Sources/Foundation/Data.swift
Co-authored-by: Max Desiatov <m_desiatov@apple.com>
1 parent 7a70a1b commit 92f7dd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Foundation/Data.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
@usableFromInline let memcpy = Musl.memcpy
3737
@usableFromInline let memcmp = Musl.memcmp
3838
#elseif canImport(WASILibc)
39+
#if swift(>=6.0)
40+
private import wasi_emulated_mman
41+
#else
3942
import wasi_emulated_mman
43+
#endif
4044
@usableFromInline let calloc = WASILibc.calloc
4145
@usableFromInline let malloc = WASILibc.malloc
4246
@usableFromInline let free = WASILibc.free

0 commit comments

Comments
 (0)