$NetBSD$ --- meson.build.orig 2025-07-23 15:42:58.000000000 +0000 +++ meson.build @@ -526,7 +526,6 @@ summary({'Snapd-glib (Snap support)': sn check_functions = [ ['gettid', '#include ', ['-D_GNU_SOURCE'], []], - ['memfd_create', '#include ', ['-D_GNU_SOURCE'], []], ['getrandom', '#include \n#include ', ['-D_GNU_SOURCE'], []], ['random_r', '#include ', ['-D_GNU_SOURCE'], []], ['reallocarray', '#include ', ['-D_GNU_SOURCE'], []], @@ -536,6 +535,10 @@ check_functions = [ ['malloc_info', '#include ', [], []], ] +if host_machine.system() in ['linux'] + check_functions.append(['memfd_create', '#include ', ['-D_GNU_SOURCE'], []]) +endif + foreach f : check_functions cdata.set('HAVE_' + f.get(0).to_upper(), cc.has_function(f.get(0),