Skip to content

Commit 08751a8

Browse files
committed
stdlib: add sys.user module for Linux
sys/user.h provides definitions for registers. It would previously get merged into the sys module which could result in it being multiply included (as in the case of libdispatch). Add an explicit submodule. Noticed when building libdispatch on Linux AArch64.
1 parent 006a423 commit 08751a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,12 @@ module SwiftGlibc [system] {
413413
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/un.h"
414414
export *
415415
}
416+
% if CMAKE_SDK in ["LINUX"]:
417+
module user {
418+
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/user.h"
419+
export *
420+
}
421+
% end
416422
module utsname {
417423
header "${GLIBC_ARCH_INCLUDE_PATH}/sys/utsname.h"
418424
export *

0 commit comments

Comments
 (0)