]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Make sure <sys/socket.h> is included in af-from-name.gperf
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 May 2025 14:07:33 +0000 (16:07 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 May 2025 19:10:15 +0000 (21:10 +0200)
src/basic/meson.build

index 2de53df93565ddea609811063057769ef0fb0eef..1b4b12108c910d5833c975e51d47c2c3cd040035 100644 (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])