meson: Add optional IPv6 support

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-21 16:34:55 +07:00 committed by Arun Raghavan
parent 6eba2f823d
commit b9a3437a5d
2 changed files with 7 additions and 0 deletions

View file

@ -209,6 +209,10 @@ elif get_option('database') == 'gdbm'
database_dep = cc.find_library('gdbm', required : true)
endif
if get_option('ipv6')
cdata.set('HAVE_IPV6', 1)
endif
atomictest = '''void func() {
volatile int atomic = 2;
__sync_bool_compare_and_swap (&atomic, 2, 3);