diff --git a/libc/include/inttypes.h.def b/libc/include/inttypes.h.def index 5879d2d8e0410..61a6c0cf7e473 100644 --- a/libc/include/inttypes.h.def +++ b/libc/include/inttypes.h.def @@ -11,7 +11,6 @@ #include "__llvm-libc-common.h" #include "llvm-libc-macros/inttypes-macros.h" -#include %%public_api() diff --git a/libc/include/llvm-libc-types/CMakeLists.txt b/libc/include/llvm-libc-types/CMakeLists.txt index 7ed69ab1af6d9..b4264db76745f 100644 --- a/libc/include/llvm-libc-types/CMakeLists.txt +++ b/libc/include/llvm-libc-types/CMakeLists.txt @@ -99,7 +99,14 @@ add_header(tss_dtor_t HDR tss_dtor_t.h) add_header(__atexithandler_t HDR __atexithandler_t.h) add_header(speed_t HDR speed_t.h) add_header(tcflag_t HDR tcflag_t.h) -add_header(struct_termios HDR struct_termios.h DEPENDS .cc_t .speed_t .tcflag_t) +add_header( + struct_termios + HDR + struct_termios.h + DEPENDS + .cc_t .speed_t .tcflag_t + libc.include.llvm-libc-macros.termios_macros +) add_header(__getoptargv_t HDR __getoptargv_t.h) add_header(wchar_t HDR wchar_t.h) add_header(char8_t HDR char8_t.h) diff --git a/libc/include/llvm-libc-types/imaxdiv_t.h b/libc/include/llvm-libc-types/imaxdiv_t.h index 5062b643065a7..bbfdfd3375095 100644 --- a/libc/include/llvm-libc-types/imaxdiv_t.h +++ b/libc/include/llvm-libc-types/imaxdiv_t.h @@ -9,6 +9,8 @@ #ifndef __LLVM_LIBC_TYPES_IMAXDIV_T_H__ #define __LLVM_LIBC_TYPES_IMAXDIV_T_H__ +#include + typedef struct { intmax_t quot; intmax_t rem; diff --git a/libc/include/llvm-libc-types/struct_termios.h b/libc/include/llvm-libc-types/struct_termios.h index e3c5f2809e439..5fa409e08d6a7 100644 --- a/libc/include/llvm-libc-types/struct_termios.h +++ b/libc/include/llvm-libc-types/struct_termios.h @@ -13,6 +13,8 @@ #include "speed_t.h" #include "tcflag_t.h" +#include "../llvm-libc-macros/termios-macros.h" // NCCS + struct termios { tcflag_t c_iflag; // Input mode flags tcflag_t c_oflag; // Output mode flags @@ -21,7 +23,6 @@ struct termios { #ifdef __linux__ cc_t c_line; // Line discipline #endif // __linux__ - // NCCS is defined in llvm-libc-macros/termios-macros.h. cc_t c_cc[NCCS]; // Control characters #ifdef __linux__ speed_t c_ispeed; // Input speed