[PATCH] QStorageInfo/Unix: fix declaration of 'mnt' on Hurd
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 6 Oct 2024 07:40:14 +0000 (09:40 +0200)
committerPino Toscano <pino@debian.org>
Wed, 23 Oct 2024 17:35:31 +0000 (19:35 +0200)
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>
Gbp-Pq: Name upstream_QStorageInfo-Unix-fix-declaration-of-mnt-on-Hurd.patch

src/corelib/io/qstorageinfo_unix.cpp

index 71775b780034e81640c755b9e7ca3cfc876a0546..4fc4b55452f3567f17acd6a0761f3d56d50baa39 100644 (file)
@@ -99,7 +99,7 @@ private:
 #elif defined(Q_OS_HURD)
     FILE *fp;
     QByteArray buffer;
-    mountinfoent mnt;
+    struct mntent mnt;
 #elif defined(Q_OS_HAIKU)
     BVolumeRoster m_volumeRoster;