From 346ec21c4c9007e98c84b67e4f5e4b9a67bbbce7 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 26 Oct 2018 18:38:23 +0200 Subject: util: use shm_open for in-memory files shm_open is a POSIX function creating an in-memory file. Using it simplifies the code and removes the dependency on XDG_RUNTIME_DIR. The only downside is that we need to generate a random name for the shm file. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 9517168a..18a5d908 100644 --- a/meson.build +++ b/meson.build @@ -56,7 +56,8 @@ udev = dependency('libudev') pixman = dependency('pixman-1') libcap = dependency('libcap', required: get_option('libcap')) logind = dependency('lib' + get_option('logind-provider'), required: get_option('logind'), version: '>=237') -math = cc.find_library('m', required: false) +math = cc.find_library('m') +rt = cc.find_library('rt') wlr_parts = [] wlr_deps = [] -- cgit v1.2.3