Add sys/types.h include to fix build with musl

This amends c82ed8b2795cbf6d82dfe3857fec7c16688137a4.

Fixes: QTBUG-120766
Change-Id: I2584c62d35c6ee0a9c8687a476f7eab52bd52af2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 72ee1df260d728a1e699bd4c6e03bf202c929cbd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
André Klitzing 2024-01-15 13:33:26 +01:00 committed by Qt Cherry-pick Bot
parent d7069db3b0
commit 59b323260f
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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)