Define PATH_MAX if not already available
authorPino Toscano <pino@debian.org>
Sun, 10 May 2026 08:57:35 +0000 (10:57 +0200)
committerPino Toscano <pino@debian.org>
Sun, 10 May 2026 08:57:35 +0000 (10:57 +0200)
Last-Update: 2025-12-12
Forwarded: not-needed

Helps building on GNU/Hurd, which does not provide PATH_MAX

Gbp-Pq: Name path_max.diff

src/lib/corelib/tools/fileinfo.cpp

index 776b34eee2a3e168756ad164cbb072fd31eaa1fe..6cc9c892766494986caecc96b396af798075b5f9 100644 (file)
 #include <QtCore/qt_windows.h>
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 namespace qbs {
 namespace Internal {