On 15/11/2020 15.34, Paolo Bonzini wrote: > On 15/11/20 15:00, Thomas Huth wrote: >> On 14/11/2020 17.56, 罗勇刚(Yonggang Luo) wrote: >>> Can we check this in meson.build? >> >> That would be nicer, indeed, but I did not spot a place where I could add my >> code there ... all the other HAVE_xxx_H symbols are added in the configure >> script. > > There is one similar test, it was split in two: > > has_gettid = cc.has_function('gettid') > ... > config_host_data.set('CONFIG_GETTID', has_gettid) > > but there's no particular reason for that. You can just add > > config_host_data.set('HAVE_SYS_IOCCOM_H', cc.has_headers('sys/ioccom.h')) > > in the config-host.h section of meson.build?.
Thanks, that seems to do the job! I'll send a v2 with that change (and try to come up with another patch that converts the other header checks from the configure script to meson). Thomas