0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/keepassxc/src-core-FileWatcher.cpp.patch
Leonid Pliushch 1455972447
enable some qt5-dependent packages
%ci:no-build
2022-04-18 14:48:04 +05:30

15 lines
589 B
Diff

diff -uNr keepassxc-2.6.6/src/core/FileWatcher.cpp keepassxc-2.6.6.mod/src/core/FileWatcher.cpp
--- keepassxc-2.6.6/src/core/FileWatcher.cpp 2021-06-12 05:13:52.000000000 +0300
+++ keepassxc-2.6.6.mod/src/core/FileWatcher.cpp 2021-07-25 20:21:11.853398555 +0300
@@ -47,8 +47,9 @@
#if defined(Q_OS_LINUX)
struct statfs statfsBuf;
bool forcePolling = false;
+#ifndef NFS_SUPER_MAGIC
const auto NFS_SUPER_MAGIC = 0x6969;
-
+#endif
if (!statfs(filePath.toLocal8Bit().constData(), &statfsBuf)) {
forcePolling = (statfsBuf.f_type == NFS_SUPER_MAGIC);
} else {