Skip to content

Commit d86e8b7

Browse files
committed
Add pty to Glibc modulemap
1 parent 328866a commit d86e8b7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
module SwiftGlibc [system] {
2222
% if CMAKE_SDK in ["LINUX", "FREEBSD", "CYGWIN"]:
2323
link "pthread"
24+
// FIXME: util contains rarely used functions and not usually needed. Unfortunately
25+
// link directive doesn't work in the submodule yet.
26+
link "util"
2427
% end
2528

2629
link "dl"
@@ -32,6 +35,14 @@ module SwiftGlibc [system] {
3235
header "${GLIBC_INCLUDE_PATH}/complex.h"
3336
export *
3437
}
38+
module pty {
39+
header "${GLIBC_INCLUDE_PATH}/pty.h"
40+
export *
41+
}
42+
module utmp {
43+
header "${GLIBC_INCLUDE_PATH}/utmp.h"
44+
export *
45+
}
3546
% end
3647

3748
% if CMAKE_SDK in ["LINUX", "ANDROID", "CYGWIN"]:

0 commit comments

Comments
 (0)