diff options
-rw-r--r-- | gcc.libc.imp | 2 | ||||
-rw-r--r-- | iwyu_include_picker.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc.libc.imp b/gcc.libc.imp index 1bbe989..6f0883f 100644 --- a/gcc.libc.imp +++ b/gcc.libc.imp @@ -91,6 +91,8 @@ { include: [ "<bits/string2.h>", private, "<string.h>", public ] }, { include: [ "<bits/string3.h>", private, "<string.h>", public ] }, { include: [ "<bits/stropts.h>", private, "<stropts.h>", public ] }, + { include: [ "<bits/struct_stat.h>", private, "<sys/stat.h>", public ] }, + { include: [ "<bits/struct_stat.h>", private, "<ftw.h>", public ] }, { include: [ "<bits/sys_errlist.h>", private, "<stdio.h>", public ] }, { include: [ "<bits/syscall.h>", private, "<sys/syscall.h>", public ] }, { include: [ "<bits/sysctl.h>", private, "<sys/sysctl.h>", public ] }, diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc index ef8eb94..97334c0 100644 --- a/iwyu_include_picker.cc +++ b/iwyu_include_picker.cc @@ -465,6 +465,8 @@ const IncludeMapEntry libc_include_map[] = { { "<bits/string2.h>", kPrivate, "<string.h>", kPublic }, { "<bits/string3.h>", kPrivate, "<string.h>", kPublic }, { "<bits/stropts.h>", kPrivate, "<stropts.h>", kPublic }, + { "<bits/struct_stat.h>", kPrivate, "<sys/stat.h>", kPublic }, + { "<bits/struct_stat.h>", kPrivate, "<ftw.h>", kPublic }, { "<bits/sys_errlist.h>", kPrivate, "<stdio.h>", kPublic }, { "<bits/syscall.h>", kPrivate, "<sys/syscall.h>", kPublic }, { "<bits/sysctl.h>", kPrivate, "<sys/sysctl.h>", kPublic }, |