summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/libxshmfence/files/patch-src__xshmfence_alloc.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/x11/libxshmfence/files/patch-src__xshmfence_alloc.c b/x11/libxshmfence/files/patch-src__xshmfence_alloc.c
index b6e98334e981..eb60dfd000dc 100644
--- a/x11/libxshmfence/files/patch-src__xshmfence_alloc.c
+++ b/x11/libxshmfence/files/patch-src__xshmfence_alloc.c
@@ -1,6 +1,20 @@
---- src/xshmfence_alloc.c.orig 2015-03-04 15:28:23 UTC
+--- src/xshmfence_alloc.c.orig 2018-02-26 17:26:59 UTC
+++ src/xshmfence_alloc.c
-@@ -73,13 +73,21 @@ xshmfence_alloc_shm(void)
+@@ -48,9 +48,13 @@ static int memfd_create(const char *name,
+ #include <sys/memfd.h>
+ #else
+ /* flags for memfd_create(2) (unsigned int) */
++#ifndef MFD_CLOEXEC
+ #define MFD_CLOEXEC 0x0001U
++#endif
++#ifndef MFD_ALLOW_SEALING
+ #define MFD_ALLOW_SEALING 0x0002U
+ #endif
++#endif
+
+ #endif
+
+@@ -73,13 +77,21 @@ xshmfence_alloc_shm(void)
fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING);
if (fd < 0)
#endif