diff --git a/src/corelib/io/qstorageinfo_linux_p.h b/src/corelib/io/qstorageinfo_linux_p.h index b9da13aa0a2..8f92b9e9783 100644 --- a/src/corelib/io/qstorageinfo_linux_p.h +++ b/src/corelib/io/qstorageinfo_linux_p.h @@ -35,7 +35,12 @@ enum class FilterMountInfo { Filtered, }; -Q_AUTOTEST_EXPORT std::vector doParseMountInfo( +#ifdef QT_BUILD_INTERNAL +Q_AUTOTEST_EXPORT +#else +static +#endif +std::vector doParseMountInfo( const QByteArray &mountinfo, FilterMountInfo filter = FilterMountInfo::All); QT_END_NAMESPACE diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp index 08fe3a782d0..10294585856 100644 --- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp +++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp @@ -22,7 +22,7 @@ #include "../../../../manual/qstorageinfo/printvolumes.cpp" -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) && defined(QT_BUILD_INTERNAL) # include "../../../../../src/corelib/io/qstorageinfo_linux_p.h" #endif