mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
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.
This commit is contained in:
parent
f668e49fae
commit
346ec21c4c
8 changed files with 80 additions and 164 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue