summaryrefslogtreecommitdiff
path: root/config.h.meson
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2019-06-20 12:11:29 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2019-06-20 12:37:18 +0200
commitc63d0173b5499631b388c5ad620d189c89ff3831 (patch)
treeeaa286b1067a99d3208b0a2cf61a643fb0bc515e /config.h.meson
parent7fcdd60ac5d438a34916e793370a51e225281a54 (diff)
downloadmutter-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.meson5
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