diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-05-22 17:43:54 -0300 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-05-23 12:57:55 +0000 |
commit | 40068e5bb5511f5ccbc28e1edd1ee26b91d0c1ec (patch) | |
tree | 9f68d6e1d70afa8eb40112b9b5866440bf10b932 /src | |
parent | ec5da59772646273dce00a2c56acab7929633902 (diff) | |
download | qtwayland-40068e5bb5511f5ccbc28e1edd1ee26b91d0c1ec.tar.gz |
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')
-rw-r--r-- | src/client/qwaylandshmbackingstore.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp index cbfdf515..54b0b798 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 |