Skip to content

[compiler-rt][sanitizer] sanitizer_platform_limits_posix.cpp uses struct termio, which will be removed in glibc-2.42 #137321

@hhoffstaette

Description

@hhoffstaette

Glibc-2.42 will remove <termio.h> and struct termio (commit), which have been outdated since before Linux existed.
A test run in Gentoo's CI found a compilation error in LLVM, which can be found here and can be traced to this location:

#if SANITIZER_GLIBC || SANITIZER_ANDROID
  unsigned struct_termio_sz = sizeof(struct termio);
#endif

While it will be some time until glibc-2.42 ships, it seems prudent to get ahead of this, especially since the remaining use of struct termio seems like an oversight.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions