summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-03-04 17:28:42 +0300
committerPaul E. McKenney <paulmck@kernel.org>2023-03-20 18:45:22 +0300
commit1c3a4c10cc3b89d9cfb1efa2e251c29da1941ee7 (patch)
tree5eb5a3e581dfcf161e9900fbd840ee580af3f36a /tools/perf/scripts/python/net_dropmonitor.py
parent3e2d337b94688b159e2f014248eb9cb6e0d494b5 (diff)
downloadlinux-1c3a4c10cc3b89d9cfb1efa2e251c29da1941ee7.tar.xz
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 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions