diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2019-02-11 18:54:10 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2019-02-14 12:53:06 +0300 |
commit | f6753c117ef0f83499d5e2d6dda226fec9ddf803 (patch) | |
tree | 309fc3bc0ce00a162d511ce2695f97ea8a302640 /include | |
parent | 678d64aa2e929368b6d6f2b83bbf5540c4fa292d (diff) |
shm: Use memfd_create when possible
It doesn't require shared memory dir and thus allows
to avoid cases when this dir is detected incorrectly,
as in https://bugreports.qt.io/browse/QTBUG-71440
Signed-off-by: Alexander Volkov <a.volkov@rusbitech.ru>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/meson.build | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 855b3d50c..9eb1a924e 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -128,6 +128,9 @@ /* Define to 1 if you have the <linux/fb.h> header file. */ #undef HAVE_LINUX_FB_H +/* Define to 1 if you have the `memfd_create' function. */ +#undef HAVE_MEMFD_CREATE + /* Define to 1 if you have the `mkostemp' function. */ #undef HAVE_MKOSTEMP diff --git a/include/meson.build b/include/meson.build index 04c41e999..bbd5a6690 100644 --- a/include/meson.build +++ b/include/meson.build @@ -141,6 +141,7 @@ conf_data.set('HAVE_GETPEEREID', cc.has_function('getpeereid')) conf_data.set('HAVE_GETPEERUCRED', cc.has_function('getpeerucred')) conf_data.set('HAVE_GETPROGNAME', cc.has_function('getprogname')) conf_data.set('HAVE_GETZONEID', cc.has_function('getzoneid')) +conf_data.set('HAVE_MEMFD_CREATE', cc.has_function('memfd_create')) conf_data.set('HAVE_MKOSTEMP', cc.has_function('mkostemp')) conf_data.set('HAVE_MMAP', cc.has_function('mmap')) conf_data.set('HAVE_POLL', cc.has_function('poll')) |