Skip to content

Commit 16df68d

Browse files
alejandro-colomarkimgr
authored andcommitted
Add mappings for <bits/struct_stat.h>
struct stat members are implemented through macros and other stuff, which is defined in that headers, so map the header to the same headers that struct stat is mapped. Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 3bb4e2d commit 16df68d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gcc.libc.imp

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
{ include: [ "<bits/string2.h>", private, "<string.h>", public ] },
9292
{ include: [ "<bits/string3.h>", private, "<string.h>", public ] },
9393
{ include: [ "<bits/stropts.h>", private, "<stropts.h>", public ] },
94+
{ include: [ "<bits/struct_stat.h>", private, "<sys/stat.h>", public ] },
95+
{ include: [ "<bits/struct_stat.h>", private, "<ftw.h>", public ] },
9496
{ include: [ "<bits/sys_errlist.h>", private, "<stdio.h>", public ] },
9597
{ include: [ "<bits/syscall.h>", private, "<sys/syscall.h>", public ] },
9698
{ include: [ "<bits/sysctl.h>", private, "<sys/sysctl.h>", public ] },

iwyu_include_picker.cc

+2
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ const IncludeMapEntry libc_include_map[] = {
465465
{ "<bits/string2.h>", kPrivate, "<string.h>", kPublic },
466466
{ "<bits/string3.h>", kPrivate, "<string.h>", kPublic },
467467
{ "<bits/stropts.h>", kPrivate, "<stropts.h>", kPublic },
468+
{ "<bits/struct_stat.h>", kPrivate, "<sys/stat.h>", kPublic },
469+
{ "<bits/struct_stat.h>", kPrivate, "<ftw.h>", kPublic },
468470
{ "<bits/sys_errlist.h>", kPrivate, "<stdio.h>", kPublic },
469471
{ "<bits/syscall.h>", kPrivate, "<sys/syscall.h>", kPublic },
470472
{ "<bits/sysctl.h>", kPrivate, "<sys/sysctl.h>", kPublic },

0 commit comments

Comments
 (0)