Skip to content

Commit 6f4f052

Browse files
committed
Use Fuchsia platform libc modulemap for Glibc
1 parent 6058ffa commit 6f4f052

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/Platform/Glibc.swift.gyb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if os(Fuchsia)
14+
// Fuchsia now provides a "Libc" module.
15+
// We are going re-export it under Glibc namespace for source compatability.
16+
@_exported import Libc
17+
#else
1318
@_exported import SwiftGlibc // Clang module
19+
#endif
1420

1521
public let MAP_FAILED: UnsafeMutableRawPointer! = UnsafeMutableRawPointer(bitPattern: -1)
1622

0 commit comments

Comments
 (0)