mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
generate-af-list.sh: slightly generalize pattern, fix w/musl (#8629)
Accept definitions to other AF_ constants, not just PF_ ones, such as: #define AF_LINUX AF_LOCAL It may not be necessary to impose any restriction on the definitions of the macros extracted, but for now keep most of that requirement but match AF_* as well.
This commit is contained in:
parent
3e85ec0721
commit
203690537b
@ -3,4 +3,4 @@ set -eu
|
||||
|
||||
$1 -E -dM -include sys/socket.h - </dev/null | \
|
||||
grep -Ev 'AF_UNSPEC|AF_MAX' | \
|
||||
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $2; }'
|
||||
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+[AP]F_[^ \t]/ { print $2; }'
|
||||
|
Loading…
Reference in New Issue
Block a user