Line 0
Link Here
|
|
|
1 |
--- src/corelib/io/qstorageinfo_unix.cpp.orig 2016-12-01 08:17:04 UTC |
2 |
+++ src/corelib/io/qstorageinfo_unix.cpp |
3 |
@@ -191,10 +191,10 @@ static bool shouldIncludeFs(const QStora |
4 |
return true; |
5 |
} |
6 |
|
7 |
-#if defined(Q_OS_BSD4) |
8 |
+#if defined(Q_OS_BSD4) || defined(Q_OS_FREEBSD) |
9 |
|
10 |
inline QStorageIterator::QStorageIterator() |
11 |
- : entryCount(::getmntinfo(&stat_buf, 0)), |
12 |
+ : entryCount(::getmntinfo(&stat_buf, MNT_NOWAIT)), |
13 |
currentIndex(-1) |
14 |
{ |
15 |
} |