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
This commit is contained in:
Niels De Graef 2019-05-12 11:32:10 +02:00 committed by Daiki Ueno
parent c4b313b5ed
commit b7d593784c

View File

@ -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