summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandshmbackingstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/qwaylandshmbackingstore.cpp')
-rw-r--r--src/client/qwaylandshmbackingstore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp
index cbfdf5157..54b0b798c 100644
--- a/src/client/qwaylandshmbackingstore.cpp
+++ b/src/client/qwaylandshmbackingstore.cpp
@@ -59,7 +59,9 @@
#ifdef Q_OS_LINUX
# include <sys/syscall.h>
// from linux/memfd.h:
-# define MFD_CLOEXEC 0x0001U
+# ifndef MFD_CLOEXEC
+# define MFD_CLOEXEC 0x0001U
+# endif
#endif
QT_BEGIN_NAMESPACE