I believe this should now correctly enable the code iff it's needed.
This commits and the parent will probably be no-op in practice.
I believe distros commonly do use fortification by default,
and I'm not aware of any platform with kresd and without asprintf().
I considered using `conf_data.set()` in meson, but that would require
us modifying contrib/ccan/asprintf/asprintf.h to include kresconfig.h,
and that seemed weird.
capng = dependency('libcap-ng', required: false)
openssl = dependency('openssl', required: false)
+have_asprintf = meson.get_compiler('c').has_function('asprintf',
+ prefix: '#define _GNU_SOURCE\n#include <stdio.h>')
+
### sendmmsg
has_sendmmsg = meson.get_compiler('c').has_function('sendmmsg',
prefix: '#define _GNU_SOURCE\n#include <sys/socket.h>')
'-Wtype-limits',
'-Wshadow',
'-fvisibility=hidden',
+ '-DHAVE_ASPRINTF=' + have_asprintf.to_int().to_string(),
language: 'c',
)