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 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 }, |