[libsecret/wip/nielsdg/fix-mlock-check-meson] Ensure the Meson build also supports private memory



commit d325863a7ed9fa136558ff1a5ad2b12daec34217
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun May 12 11:32:10 2019 +0200

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]