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>
This commit is contained in:
Thiago Macieira 2018-05-22 17:43:54 -03:00
parent 75b60471cf
commit 72a5628a34

View File

@ -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