meson: Make sure <sys/socket.h> is included in af-from-name.gperf

This commit is contained in:
Daan De Meyer
2025-05-22 16:07:33 +02:00
parent bba27cd746
commit 6b436ebace

View File

@@ -155,17 +155,17 @@ errno_list_txt = custom_target(
capture : true)
generated_gperf_headers = []
foreach item : [['af', af_list_txt, 'af', ''],
['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_'],
['cap', cap_list_txt, 'capability', ''],
['errno', errno_list_txt, 'errno', '']]
foreach item : [['af', af_list_txt, 'af', '', ['<sys/socket.h>']],
['arphrd', arphrd_list_txt, 'arphrd', 'ARPHRD_', []],
['cap', cap_list_txt, 'capability', '', []],
['errno', errno_list_txt, 'errno', '', []]]
fname = '@0@-from-name.gperf'.format(item[0])
gperf_file = custom_target(
fname,
input : item[1],
output : fname,
command : [generate_gperfs, item[2], item[3], '@INPUT@'],
command : [generate_gperfs, item[2], item[3], '@INPUT@'] + item[4],
capture : true)
fname = '@0@-from-name.inc'.format(item[0])