aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-07-11 11:38:28 -0700
committerFangrui Song <i@maskray.me>2022-07-11 11:38:28 -0700
commitb379129c4beb3f26223288627a1291739f33af02 (patch)
tree36b5fcee0887e56c02dc8165797a15348289246c /clang/lib/CodeGen/CodeGenModule.cpp
parent3d438ceed10d73f951226d398abf867822b68cb1 (diff)
downloadllvm-b379129c4beb3f26223288627a1291739f33af02.zip
llvm-b379129c4beb3f26223288627a1291739f33af02.tar.gz
llvm-b379129c4beb3f26223288627a1291739f33af02.tar.bz2
[sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36
It is generally not a good idea to mix usage of glibc headers and Linux UAPI headers (https://sourceware.org/glibc/wiki/Synchronizing_Headers). In glibc since 7eae6a91e9b1670330c9f15730082c91c0b1d570 (milestone: 2.36), sys/mount.h defines `fsconfig_command` which conflicts with linux/mount.h: .../usr/include/linux/mount.h:95:6: error: redeclaration of ‘enum fsconfig_command’ Remove #include <linux/fs.h> which pulls in linux/mount.h. Expand its 4 macros manually. Fix https://github.com/llvm/llvm-project/issues/56421 Reviewed By: #sanitizers, vitalybuka, zatrazz Differential Revision: https://reviews.llvm.org/D129471
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions