mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
errno-name: drop aliases defined for specific arch
In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of ECANCELED and ECONNREFUSED, respectively. Let's drop them. Fixes #21844.
This commit is contained in:
parent
c99d5efc2d
commit
95d88436ea
|
@ -3,5 +3,9 @@
|
|||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
# In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of
|
||||
# ECANCELED and ECONNREFUSED, respectively. Let's drop them.
|
||||
|
||||
${1:?} -dM -include errno.h - </dev/null | \
|
||||
grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED)' | \
|
||||
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
|
||||
|
|
Loading…
Reference in a new issue