void-packages/srcpkgs/qt5/patches/qt-glibc-renameat2.patch

15 lines
597 B
Diff

--- qtbase/src/corelib/io/qfilesystemengine_unix.cpp.orig 2018-10-22 00:35:10.154815542 +0200
+++ qtbase/src/corelib/io/qfilesystemengine_unix.cpp 2018-10-22 00:38:16.066828801 +0200
@@ -98,9 +98,11 @@
#endif
# if !QT_CONFIG(renameat2) && defined(SYS_renameat2)
+# ifndef __GLIBC__
static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
{ return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
# endif
+# endif
# if !QT_CONFIG(statx) && defined(SYS_statx) && QT_HAS_INCLUDE(<linux/stat.h>)
# include <linux/stat.h>