diff options
author | 2023-03-04 15:28:42 +0100 | |
---|---|---|
committer | 2023-03-20 08:45:22 -0700 | |
commit | 1c3a4c10cc3b89d9cfb1efa2e251c29da1941ee7 (patch) | |
tree | 5eb5a3e581dfcf161e9900fbd840ee580af3f36a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/nolibc: skip the chroot_root and link_dir tests when not privileged (diff) | |
download | wireguard-linux-1c3a4c10cc3b89d9cfb1efa2e251c29da1941ee7.tar.xz wireguard-linux-1c3a4c10cc3b89d9cfb1efa2e251c29da1941ee7.zip |
tools/nolibc: check for S_I* macros before defining them
Defining S_I* flags in types.h can cause some build failures if
linux/stat.h is included prior to it. But if not defined, some toolchains
that include some glibc parts will in turn fail because linux/stat.h
already takes care of avoiding these definitions when glibc is present.
Let's preserve the macros here but first include linux/stat.h and check
for their definition before doing so. We also define the previously
missing permission macros so that we don't get a different behavior
depending on the first include found.
Cc: Feiyang Chen <chenfeiyang@loongson.cn>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions