X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmeson.build;h=1d195cfa7254870386f597cc7e22adc4e5fb18c2;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=c780ba11bdd17b70e64a7a8bee998c7d2f9f1559;hpb=a5c6c6ea1ab657d83a4d8b064ac9bfa9c16adf63;p=tinc diff --git a/src/meson.build b/src/meson.build index c780ba11..1d195cfa 100644 --- a/src/meson.build +++ b/src/meson.build @@ -18,6 +18,15 @@ foreach attr : ['malloc', 'nonnull', 'warn_unused_result', 'packed', 'format'] endif endforeach +if cc.compiles(''' + #include + extern void *make() __attribute__((malloc(free))); + int main(void) { return 0; } +''') + cdata.set('HAVE_ATTR_MALLOC_WITH_ARG', 1, + description: 'support for __attribute__((malloc(deallocator)))') +endif + if cc.compiles(''' _Static_assert(1, "ok"); int main(void) { return 0; } @@ -106,6 +115,7 @@ subdir('chacha-poly1305') src_lib_common = [ 'conf.c', + 'console.c', 'dropin.c', 'keys.c', 'list.c',