diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2019-06-20 12:11:29 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2019-06-20 12:37:18 +0200 |
commit | c63d0173b5499631b388c5ad620d189c89ff3831 (patch) | |
tree | eaa286b1067a99d3208b0a2cf61a643fb0bc515e /config.h.meson | |
parent | 7fcdd60ac5d438a34916e793370a51e225281a54 (diff) | |
download | mutter-c63d0173b5499631b388c5ad620d189c89ff3831.tar.gz |
xwayland: Fix build without <sys/random.h>
The include <sys/random.h> was added to glibc-2.25, previously was
<linux/random.h>.
Adjust meson build and code to accomodate both.
Fixes: a8984a81c "xwayland: Generate a Xauth file and pass this to
Xwayland when starting it"
https://gitlab.gnome.org/GNOME/mutter/merge_requests/633
Diffstat (limited to 'config.h.meson')
-rw-r--r-- | config.h.meson | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config.h.meson b/config.h.meson index 2095b6915..77045319c 100644 --- a/config.h.meson +++ b/config.h.meson @@ -61,5 +61,6 @@ /* XKB base prefix */ #mesondefine XKB_BASE -/* Default rules for allowing Xwayland grabs */ -#mesondefine XWAYLAND_GRAB_DEFAULT_ACCESS_RULES +/* Either <sys/random.h> or <linux/random.h> */ +#mesondefine HAVE_SYS_RANDOM +#mesondefine HAVE_LINUX_RANDOM |