From b7d593784c92ffc5500bb1a8082c110730255ad0 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Sun, 12 May 2019 11:32:10 +0200 Subject: [PATCH] Ensure the Meson build also supports private memory The meson build does not check for `mlock()` and define `HAVE_MLOCK`. Fixes https://gitlab.gnome.org/GNOME/libsecret/issues/23 --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 36db806..0d59799 100644 --- a/meson.build +++ b/meson.build @@ -78,6 +78,7 @@ if with_gcrypt endif conf.set('WITH_DEBUG', enable_debug) conf.set('_DEBUG', enable_debug) +conf.set('HAVE_MLOCK', meson.get_compiler('c').has_function('mlock')) configure_file(output: 'config.h', configuration: conf) # Subfolders