[gtk+/gtk-3-18] wayland: __NR_memfd_create instead of SYS_memfd_create



commit c3696f7adb2ba8040e52dc1d83a56ab20c9a4f6e
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jan 25 13:55:25 2016 -0500

    wayland: __NR_memfd_create instead of SYS_memfd_create
    
    It looks like the gnome-continuous headers haven't quite
    caught up yet, so try __NR_memfd_create instead.
    
    If that doesn't work, i'll likely just add in a fallback
    code path.

 gdk/wayland/gdkdisplay-wayland.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 9f1a1aa..66a68a5 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -985,7 +985,7 @@ create_shm_pool (struct wl_shm  *shm,
   int ret, fd;
   void *data;
 
-  ret = syscall (SYS_memfd_create, "gdk-wayland", MFD_CLOEXEC);
+  ret = syscall (__NR_memfd_create, "gdk-wayland", MFD_CLOEXEC);
 
   if (ret < 0)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]