[qtbase] Fix build on FreeBSD 15 (#49167)

This commit is contained in:
CQ_Undefine
2026-01-09 14:43:33 +01:00
committed by GitHub
parent d4d51d2f22
commit 67e2629463
5 changed files with 21 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ set(${PORT}_PATCHES
fix-libresolv-test.patch
2d4915.diff
framework.patch
use_inotify_on_freebsd.patch
)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)

View File

@@ -0,0 +1,13 @@
diff --git a/src/corelib/io/qfilesystemwatcher.cpp b/src/corelib/io/qfilesystemwatcher.cpp
index cd72f21a..2fba878f 100644
--- a/src/corelib/io/qfilesystemwatcher.cpp
+++ b/src/corelib/io/qfilesystemwatcher.cpp
@@ -11,7 +11,7 @@
#include <qloggingcategory.h>
#include <qset.h>
-#if (defined(Q_OS_LINUX) || defined(Q_OS_QNX)) && QT_CONFIG(inotify)
+#if (defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD)) && QT_CONFIG(inotify)
#define USE_INOTIFY
#endif

View File

@@ -1,6 +1,7 @@
{
"name": "qtbase",
"version": "6.10.0",
"port-version": 1,
"description": "Qt Base (Core, Gui, Widgets, Network, ...)",
"homepage": "https://www.qt.io/",
"license": null,

View File

@@ -8142,7 +8142,7 @@
},
"qtbase": {
"baseline": "6.10.0",
"port-version": 0
"port-version": 1
},
"qtcharts": {
"baseline": "6.10.0",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1ab7c7c7654ecd1fa22b8c05c9cfc3c3e91aadc8",
"version": "6.10.0",
"port-version": 1
},
{
"git-tree": "c59faa7f07b2a2e49ad0bfdee81d55ff8b5068a5",
"version": "6.10.0",