kcc added a comment. Yes, I think a much safer fix would be to add unsigned struct_ustat_sz = <SOMETHING>; // glibc >= 2.28 doesn't have <sys/ustat.h> so we can't include it and use sizeof(struct ustat); Repository: rCRT Compiler Runtime https://reviews.llvm.org/D47165