summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandshmbackingstore.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-05-22 17:43:54 -0300
committerThiago Macieira <thiago.macieira@intel.com>2018-05-23 12:57:55 +0000
commit40068e5bb5511f5ccbc28e1edd1ee26b91d0c1ec (patch)
tree9f68d6e1d70afa8eb40112b9b5866440bf10b932 /src/client/qwaylandshmbackingstore.cpp
parentec5da59772646273dce00a2c56acab7929633902 (diff)
Suppress warning about MFD_CLOEXEC being redefined
glibc 2.27 #defined it as just "1U" instead of the kernel "0x0001U". Same value, but because the tokens are different, this triggers a warning. Change-Id: I052407b777ec43f78378fffd153112449de8cf4f Reviewed-by: Johan Helsing <johan.helsing@qt.io>
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