diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2023-02-24 09:07:40 +0400 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-24 10:29:38 +0000 |
commit | 0a26cbb46b3f4efd82ece41262aff1011eadf645 (patch) | |
tree | 26f2494eaedc515b688908730eaf3cbe162df7aa /src | |
parent | c50722125ed35ca4f53e1679fb40acce7b1a0a3a (diff) | |
download | qtwayland-0a26cbb46b3f4efd82ece41262aff1011eadf645.tar.gz |
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);
| ^~~~~~~~~~~
Change-Id: I4b9b3a13ac47483594f454ba36dc5d720cb592a5
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
(cherry picked from commit 12da86346954f7290e3e1fb00f5c5f2307d2fd58)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/client/qwaylandshmbackingstore.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp index 2e0c2491..b9bfc9c8 100644 --- a/src/client/qwaylandshmbackingstore.cpp +++ b/src/client/qwaylandshmbackingstore.cpp @@ -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 |