]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
arphrd-list: use imported linux/if_arp.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 Sep 2024 14:36:06 +0000 (23:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Sep 2024 05:52:18 +0000 (14:52 +0900)
src/basic/generate-arphrd-list.sh
src/basic/meson.build

index ca1ba7cad4d1380a9087f761d0b0088b15c4434a..7ba834ff1c566e173caa055356f1a228a7ac8141 100755 (executable)
@@ -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_//'
index b538775576ab9d91d7e4ffb56bfb291d0f38eb66..5b62fe90bcb4846795c36aa462ef7be0b01e687b 100644 (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')