Fix namespaced linux builds
Using "struct statx" as argument type is forward declaration which then will expect the namespace where it was first encountered. Change-Id: I2d4ba930bd5b4e264228f2549bd6ef75e5cf3a67 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
275c748ada
commit
8298956eb0
|
|
@ -102,6 +102,10 @@ static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struc
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef STATX_BASIC_STATS
|
||||
struct statx { mode_t stx_mode; };
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#define emptyFileEntryWarning() emptyFileEntryWarning_(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC)
|
||||
|
|
@ -390,7 +394,6 @@ inline void QFileSystemMetaData::fillFromStatxBuf(const struct statx &statxBuffe
|
|||
groupId_ = statxBuffer.stx_gid;
|
||||
}
|
||||
#else
|
||||
struct statx { mode_t stx_mode; };
|
||||
static int qt_statx(const char *, struct statx *)
|
||||
{ return -ENOSYS; }
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,10 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
struct statx;
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QFileSystemEngine;
|
||||
|
|
|
|||
Loading…
Reference in New Issue