Fix build on CentOS 7
Have the following errors while attempting to build qtwayland v6.5.0-beta3: /usr/src/Libraries/qt_6.5.0/qtwayland/src/client/qwaylandshmbackingstore.cpp:48:19: error: 'F_ADD_SEALS' was not declared in this scope 48 | fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); | ^~~~~~~~~~~ /usr/src/Libraries/qt_6.5.0/qtwayland/src/client/qwaylandshmbackingstore.cpp:48:32: error: 'F_SEAL_SHRINK' was not declared in this scope 48 | fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); | ^~~~~~~~~~~~~ /usr/src/Libraries/qt_6.5.0/qtwayland/src/client/qwaylandshmbackingstore.cpp:48:48: error: 'F_SEAL_SEAL' was not declared in this scope 48 | fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); | ^~~~~~~~~~~ Pick-to: 6.5 Change-Id: I4b9b3a13ac47483594f454ba36dc5d720cb592a5 Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org> Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
cbab88861b
commit
ba604ed786
@ -29,6 +29,16 @@
|
||||
# ifndef MFD_ALLOW_SEALING
|
||||
# define MFD_ALLOW_SEALING 0x0002U
|
||||
# endif
|
||||
// from bits/fcntl-linux.h
|
||||
# ifndef F_ADD_SEALS
|
||||
# define F_ADD_SEALS 1033
|
||||
# endif
|
||||
# ifndef F_SEAL_SEAL
|
||||
# define F_SEAL_SEAL 0x0001
|
||||
# endif
|
||||
# ifndef F_SEAL_SHRINK
|
||||
# define F_SEAL_SHRINK 0x0002
|
||||
# endif
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
Loading…
x
Reference in New Issue
Block a user