diff --git a/subprojects/libglnx/meson.build b/subprojects/libglnx/meson.build index 5b957ef04911c5c6f318e59fb178ea27dc5e796d..74ee36a37d576f06ef87756ced8dabe1232337b3 100644 --- a/subprojects/libglnx/meson.build +++ b/subprojects/libglnx/meson.build @@ -14,7 +14,7 @@ check_functions = [ ] conf = configuration_data() foreach check_function : check_functions - if cc.compiles(''' + have_it = cc.compiles(''' #include <sys/types.h> #include <unistd.h> #include <stdio.h> @@ -32,8 +32,7 @@ foreach check_function : check_functions args : '-D_GNU_SOURCE', name : check_function + '() is declared', ) - conf.set('HAVE_DECL_' + check_function.underscorify().to_upper(), 1) - endif + conf.set10('HAVE_DECL_' + check_function.underscorify().to_upper(), have_it) endforeach config_h = configure_file( output : 'config.h',