parent
6d621a24dd
commit
30dad4a60f
@ -1,36 +0,0 @@
|
||||
From f319895389705a3db7c2134d1ed47ceade1b204e Mon Sep 17 00:00:00 2001
|
||||
From: Pino Toscano <toscano.pino@tiscali.it>
|
||||
Date: Sat, 22 Jun 2024 19:55:15 +0200
|
||||
Subject: [PATCH] IPC: add PATH_MAX-less fallback definition for MAX_PATH
|
||||
|
||||
Define MAX_PATH also when PATH_MAX is not defined (e.g on GNU/Hurd).
|
||||
MAX_PATH is Windows constant, and it is used in this file only in a
|
||||
code path for Windows; because of this, the static fallback define
|
||||
should be good enough.
|
||||
|
||||
Change-Id: Ic1b9fee3b62505f86aa8ec89bbd20493bfe1f67c
|
||||
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
||||
---
|
||||
src/corelib/ipc/qsharedmemory.cpp | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/corelib/ipc/qsharedmemory.cpp b/src/corelib/ipc/qsharedmemory.cpp
|
||||
index 02761c0263..6ee662dc53 100644
|
||||
--- a/src/corelib/ipc/qsharedmemory.cpp
|
||||
+++ b/src/corelib/ipc/qsharedmemory.cpp
|
||||
@@ -14,7 +14,11 @@
|
||||
#endif
|
||||
|
||||
#ifndef MAX_PATH
|
||||
-# define MAX_PATH PATH_MAX
|
||||
+# ifdef PATH_MAX
|
||||
+# define MAX_PATH PATH_MAX
|
||||
+# else
|
||||
+# define MAX_PATH 1024
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
--
|
||||
2.43.0
|
||||
|
@ -1,30 +0,0 @@
|
||||
From fc3e3d033584c62dfb2f3e3da551a7dbd7c0150d Mon Sep 17 00:00:00 2001
|
||||
From: Pino Toscano <toscano.pino@tiscali.it>
|
||||
Date: Sun, 6 Oct 2024 09:40:14 +0200
|
||||
Subject: [PATCH] QStorageInfo/Unix: fix declaration of 'mnt' on Hurd
|
||||
|
||||
Directly use the right type for it, after the Linux code was dropped.
|
||||
Fixes commit 543ae6e6a43519b9fca6758c4a8c78625fcb2c86.
|
||||
|
||||
Change-Id: I1417853153d2851262f40713b3318f0dae09c391
|
||||
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
||||
---
|
||||
src/corelib/io/qstorageinfo_unix.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/corelib/io/qstorageinfo_unix.cpp b/src/corelib/io/qstorageinfo_unix.cpp
|
||||
index b809a52f97..526c75c00a 100644
|
||||
--- a/src/corelib/io/qstorageinfo_unix.cpp
|
||||
+++ b/src/corelib/io/qstorageinfo_unix.cpp
|
||||
@@ -98,7 +98,7 @@ private:
|
||||
#elif defined(Q_OS_HURD)
|
||||
FILE *fp;
|
||||
QByteArray buffer;
|
||||
- mountinfoent mnt;
|
||||
+ struct mntent mnt;
|
||||
#elif defined(Q_OS_HAIKU)
|
||||
BVolumeRoster m_volumeRoster;
|
||||
|
||||
--
|
||||
2.45.2
|
||||
|
Loading…
Reference in new issue