arphrd-list: use imported linux/if_arp.h

This commit is contained in:
Yu Watanabe
2024-09-07 23:36:06 +09:00
parent a84649592c
commit 0ca88780d6
2 changed files with 2 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
set -eu
set -o pipefail
${1:?} -dM -include linux/if_arp.h -include "${2:?}" - </dev/null | \
${1:?} -dM -include "${2:?}" -include "${3:?}" - </dev/null | \
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
sed -e 's/ARPHRD_//'

View File

@@ -131,7 +131,7 @@ generate_arphrd_list = find_program('generate-arphrd-list.sh')
arphrd_list_txt = custom_target(
'arphrd-list.txt',
output : 'arphrd-list.txt',
command : [generate_arphrd_list, cpp, config_h],
command : [generate_arphrd_list, cpp, files('linux/if_arp.h'), config_h],
capture : true)
generate_cap_list = find_program('generate-cap-list.sh')