diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-08-01 21:13:37 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-01 20:43:01 +0200 |
commit | 9b6c975ceb6e627783619d5dd544c94695223307 (patch) | |
tree | 801d5bf6d7f3e651405a6f3cd4ca2173b9daf861 | |
parent | 7d4bfe3443b218d6c6338a4f47a6a289418d6351 (diff) |
Add mappings for <bits/types/siginfo_t.h>
siginfo_t members are implemented through macros and other stuff,
which is defined in that header, so map the header to the same
headers that siginfo_t is mapped.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-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 becee09..1bbe989 100644 --- a/gcc.libc.imp +++ b/gcc.libc.imp @@ -106,6 +106,8 @@ { include: [ "<bits/timerfd.h>", private, "<sys/timerfd.h>", public ] }, { include: [ "<bits/timex.h>", private, "<sys/timex.h>", public ] }, { include: [ "<bits/types.h>", private, "<sys/types.h>", public ] }, + { include: [ "<bits/types/siginfo_t.h>", private, "<signal.h>", public ] }, + { include: [ "<bits/types/siginfo_t.h>", private, "<sys/wait.h>", public ] }, { include: [ "<bits/uio.h>", private, "<sys/uio.h>", public ] }, { include: [ "<bits/unistd.h>", private, "<unistd.h>", public ] }, { include: [ "<bits/ustat.h>", private, "<sys/ustat.h>", private ] }, diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc index 817067b..4e6b490 100644 --- a/iwyu_include_picker.cc +++ b/iwyu_include_picker.cc @@ -475,6 +475,8 @@ const IncludeMapEntry libc_include_map[] = { { "<bits/timerfd.h>", kPrivate, "<sys/timerfd.h>", kPublic }, { "<bits/timex.h>", kPrivate, "<sys/timex.h>", kPublic }, { "<bits/types.h>", kPrivate, "<sys/types.h>", kPublic }, + { "<bits/types/siginfo_t.h>", kPrivate, "<signal.h>", kPublic }, + { "<bits/types/siginfo_t.h>", kPrivate, "<sys/wait.h>", kPublic }, { "<bits/uio.h>", kPrivate, "<sys/uio.h>", kPublic }, { "<bits/unistd.h>", kPrivate, "<unistd.h>", kPublic }, { "<bits/ustat.h>", kPrivate, "<sys/ustat.h>", kPrivate }, |