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
|
|
@ -3,10 +3,10 @@ lib_wlr_util = static_library(
|
|||
files(
|
||||
'array.c',
|
||||
'log.c',
|
||||
'os-compatibility.c',
|
||||
'region.c',
|
||||
'shm.c',
|
||||
'signal.c',
|
||||
),
|
||||
include_directories: wlr_inc,
|
||||
dependencies: [wayland_server, pixman],
|
||||
dependencies: [wayland_server, pixman, rt],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue