summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2024-01-15 13:33:26 +0100
committerAndré Klitzing <aklitzing@gmail.com>2024-01-15 23:17:39 +0100
commit72ee1df260d728a1e699bd4c6e03bf202c929cbd (patch)
tree73a2d07b6d53612c295c8ade7dea84657185a97f
parenta05abede682db4ab20a7c1d9eb45a487e91d6a78 (diff)
Add sys/types.h include to fix build with musl
This amends c82ed8b2795cbf6d82dfe3857fec7c16688137a4. Pick-to: 6.7 Fixes: QTBUG-120766 Change-Id: I2584c62d35c6ee0a9c8687a476f7eab52bd52af2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/corelib/io/qstorageinfo_linux_p.h1
-rw-r--r--src/corelib/io/qstorageinfo_p.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qstorageinfo_linux_p.h b/src/corelib/io/qstorageinfo_linux_p.h
index 1a59ee910f..6f5e107ec6 100644
--- a/src/corelib/io/qstorageinfo_linux_p.h
+++ b/src/corelib/io/qstorageinfo_linux_p.h
@@ -24,7 +24,6 @@
#include <QtCore/private/qlocale_tools_p.h>
#include <sys/sysmacros.h> // makedev()
-#include <sys/types.h> // dev_t
QT_BEGIN_NAMESPACE
diff --git a/src/corelib/io/qstorageinfo_p.h b/src/corelib/io/qstorageinfo_p.h
index 25106dacfb..20f80ac0d1 100644
--- a/src/corelib/io/qstorageinfo_p.h
+++ b/src/corelib/io/qstorageinfo_p.h
@@ -21,6 +21,10 @@
#include <QtCore/private/qglobal_p.h>
#include "qstorageinfo.h"
+#ifdef Q_OS_UNIX
+#include <sys/types.h> // dev_t
+#endif
+
QT_BEGIN_NAMESPACE
inline Q_LOGGING_CATEGORY(lcStorageInfo, "qt.core.qstorageinfo", QtWarningMsg)