diff --git a/libc/include/sys/ioctl.h b/libc/include/sys/ioctl.h index 9f685100e..49d452c7c 100644 --- a/libc/include/sys/ioctl.h +++ b/libc/include/sys/ioctl.h @@ -30,6 +30,11 @@ #include #include +/* + * NetBSD and glibc's provide some of the + * terminal-related ioctl data structures such as struct winsize. + */ +#include #include #include #include diff --git a/libc/kernel/common/linux/types.h b/libc/kernel/common/linux/types.h index 90b0f6b91..b40959cf9 100644 --- a/libc/kernel/common/linux/types.h +++ b/libc/kernel/common/linux/types.h @@ -33,12 +33,14 @@ typedef __u64 __bitwise __le64; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ typedef __u64 __bitwise __be64; #endif +typedef __u16 __bitwise __sum16; +typedef __u32 __bitwise __wsum; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct ustat { __kernel_daddr_t f_tfree; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_ino_t f_tinode; char f_fname[6]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ char f_fpack[6]; }; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif