net: slirp: allow CFI with libslirp >= 4.7
commitbf2f69d08bf158bfdbbe251357452f9576489b6d
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Apr 2022 07:41:27 +0000 (11 09:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 10:29:44 +0000 (12 12:29 +0200)
treed2acd11709835df34c26cf4f634c75059dd98024
parent6222e55d134162e87062326a773eb7c9f9d13834
net: slirp: allow CFI with libslirp >= 4.7

slirp 4.7 introduces a new CFI-friendly timer callback that does
not pass function pointers within libslirp as callbacks for timers.
Check the version number and, if it is new enough, allow using CFI
even with a system libslirp.

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Marc-André Lureau <malureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build