summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-08-01 21:04:51 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-09-01 20:43:01 +0200
commit7d4bfe3443b218d6c6338a4f47a6a289418d6351 (patch)
tree972057f48017b9d9e82831697ca4a2c24b9248c9
parenteee6d6a1994d1b2e70bd7c20e8e271318ad28921 (diff)
Add mappings for <bits/mman-shared.h>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--gcc.libc.imp1
-rw-r--r--iwyu_include_picker.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc.libc.imp b/gcc.libc.imp
index 554c63d..becee09 100644
--- a/gcc.libc.imp
+++ b/gcc.libc.imp
@@ -39,6 +39,7 @@
{ include: [ "<bits/mathdef.h>", private, "<math.h>", public ] },
{ include: [ "<bits/mathinline.h>", private, "<math.h>", public ] },
{ include: [ "<bits/mman.h>", private, "<sys/mman.h>", public ] },
+ { include: [ "<bits/mman-shared.h>", private, "<sys/mman.h>", public ] },
{ include: [ "<bits/monetary-ldbl.h>", private, "<monetary.h>", public ] },
{ include: [ "<bits/mqueue.h>", private, "<mqueue.h>", public ] },
{ include: [ "<bits/mqueue2.h>", private, "<mqueue.h>", public ] },
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
index 1626175..817067b 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
@@ -408,6 +408,7 @@ const IncludeMapEntry libc_include_map[] = {
{ "<bits/mathdef.h>", kPrivate, "<math.h>", kPublic },
{ "<bits/mathinline.h>", kPrivate, "<math.h>", kPublic },
{ "<bits/mman.h>", kPrivate, "<sys/mman.h>", kPublic },
+ { "<bits/mman-shared.h>", kPrivate, "<sys/mman.h>", kPublic },
{ "<bits/monetary-ldbl.h>", kPrivate, "<monetary.h>", kPublic },
{ "<bits/mqueue.h>", kPrivate, "<mqueue.h>", kPublic },
{ "<bits/mqueue2.h>", kPrivate, "<mqueue.h>", kPublic },