1 diff -up qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h.glibc qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h
2 --- qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h.glibc 2018-06-15 09:29:31.000000000 +0200
3 +++ qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h 2018-07-26 15:40:56.887961897 +0200
7 #include <sys/socket.h>
12 #include <netinet/in.h>
14 diff -up qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp.glibc qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp
15 --- qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp.glibc 2018-06-15 09:29:31.000000000 +0200
16 +++ qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp 2018-07-26 16:34:54.346840184 +0200
19 #include <stdlib.h> // for realpath()
20 #include <sys/types.h>
27 @@ -91,7 +93,9 @@ extern "C" NSString *NSTemporaryDirector
28 # include <sys/syscall.h>
29 # include <sys/sendfile.h>
30 # include <linux/fs.h>
32 # include <linux/stat.h>
35 // in case linux/fs.h is too old and doesn't define it:
37 @@ -105,13 +109,13 @@ extern "C" NSString *NSTemporaryDirector
40 # undef STATX_BASIC_STATS
42 -# if !QT_CONFIG(renameat2) && defined(SYS_renameat2)
44 +# if 0 && !QT_CONFIG(renameat2) && defined(SYS_renameat2)
45 static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
46 { return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
49 -# if !QT_CONFIG(statx) && defined(SYS_statx)
50 +# if 0 && !QT_CONFIG(statx) && defined(SYS_statx)
51 static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
52 { return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
53 # elif !QT_CONFIG(statx) && !defined(SYS_statx)