|
 |
91d4fa |
diff --git a/src/corelib/configure.json b/src/corelib/configure.json
|
|
 |
91d4fa |
index dfb575da..e87c3fd4 100644
|
|
 |
91d4fa |
--- a/src/corelib/configure.json
|
|
 |
91d4fa |
+++ b/src/corelib/configure.json
|
|
 |
91d4fa |
@@ -508,7 +508,7 @@
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"getentropy": {
|
|
 |
91d4fa |
"label": "getentropy()",
|
|
 |
91d4fa |
- "condition": "config.unix && tests.getentropy",
|
|
 |
91d4fa |
+ "disable": "true",
|
|
 |
91d4fa |
"output": [ "privateFeature" ]
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"glib": {
|
|
 |
91d4fa |
@@ -636,7 +636,7 @@
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"renameat2": {
|
|
 |
91d4fa |
"label": "renameat2()",
|
|
 |
91d4fa |
- "condition": "config.linux && tests.renameat2",
|
|
 |
91d4fa |
+ "disable": "true",
|
|
 |
91d4fa |
"output": [ "privateFeature" ]
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"slog2": {
|
|
 |
91d4fa |
@@ -646,7 +646,7 @@
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"statx": {
|
|
 |
91d4fa |
"label": "statx() in libc",
|
|
 |
91d4fa |
- "condition": "config.linux && tests.statx",
|
|
 |
91d4fa |
+ "disable": "true",
|
|
 |
91d4fa |
"output": [ "privateFeature" ]
|
|
 |
91d4fa |
},
|
|
 |
91d4fa |
"syslog": {
|
|
 |
91d4fa |
diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp
|
|
 |
91d4fa |
index be6ce48d..5b337c0f 100644
|
|
 |
91d4fa |
--- a/src/corelib/io/qfilesystemengine_unix.cpp
|
|
 |
91d4fa |
+++ b/src/corelib/io/qfilesystemengine_unix.cpp
|
|
 |
91d4fa |
@@ -50,9 +50,10 @@
|
|
 |
91d4fa |
#include <pwd.h>
|
|
 |
91d4fa |
#include <stdlib.h> // for realpath()
|
|
 |
91d4fa |
#include <sys/types.h>
|
|
 |
91d4fa |
-#include <sys/stat.h>
|
|
 |
91d4fa |
#include <unistd.h>
|
|
 |
91d4fa |
+#define renameat2 renameat2_unused
|
|
 |
91d4fa |
#include <stdio.h>
|
|
 |
91d4fa |
+#undef renameat2
|
|
 |
91d4fa |
#include <errno.h>
|
|
 |
91d4fa |
|
|
 |
91d4fa |
#if QT_HAS_INCLUDE(<paths.h>)
|
|
 |
91d4fa |
@@ -91,7 +92,9 @@ extern "C" NSString *NSTemporaryDirectory();
|
|
 |
91d4fa |
# include <sys/syscall.h>
|
|
 |
91d4fa |
# include <sys/sendfile.h>
|
|
 |
91d4fa |
# include <linux/fs.h>
|
|
 |
91d4fa |
-# include <linux/stat.h>
|
|
 |
91d4fa |
+#define statx statx_unused
|
|
 |
91d4fa |
+# include <sys/stat.h>
|
|
 |
91d4fa |
+#undef statx
|
|
 |
91d4fa |
|
|
 |
91d4fa |
// in case linux/fs.h is too old and doesn't define it:
|
|
 |
91d4fa |
#ifndef FICLONE
|
|
 |
91d4fa |
@@ -107,12 +110,12 @@ extern "C" NSString *NSTemporaryDirectory();
|
|
 |
91d4fa |
# undef STATX_BASIC_STATS
|
|
 |
91d4fa |
# else
|
|
 |
91d4fa |
# if !QT_CONFIG(renameat2) && defined(SYS_renameat2)
|
|
 |
91d4fa |
-static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
|
|
 |
91d4fa |
+extern int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
|
|
 |
91d4fa |
{ return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
|
|
 |
91d4fa |
# endif
|
|
 |
91d4fa |
|
|
 |
91d4fa |
# if !QT_CONFIG(statx) && defined(SYS_statx)
|
|
 |
91d4fa |
-static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
|
 |
91d4fa |
+extern int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
|
 |
91d4fa |
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
|
|
 |
91d4fa |
# elif !QT_CONFIG(statx) && !defined(SYS_statx)
|
|
 |
91d4fa |
# undef STATX_BASIC_STATS
|