mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-03 10:33:06 +02:00
qt6-base: fix musl stat
This commit is contained in:
parent
7a2e083257
commit
70a7e3b681
2 changed files with 48 additions and 13 deletions
|
@ -1,13 +1,48 @@
|
|||
--- a/mkspecs/common/posix/qplatformdefs.h
|
||||
+++ b/mkspecs/common/posix/qplatformdefs.h
|
||||
@@ -14,6 +14,10 @@
|
||||
|
||||
#if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT)
|
||||
|
||||
+#if !defined(__GLIBC__) && !defined(_LARGEFILE64_SOURCE)
|
||||
+#define _LARGEFILE64_SOURCE
|
||||
--- a/mkspecs/linux-clang/qplatformdefs.h
|
||||
+++ b/mkspecs/linux-clang/qplatformdefs.h
|
||||
@@ -16,6 +16,9 @@
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
+#ifndef _LARGEFILE64_SOURCE
|
||||
+# define _LARGEFILE64_SOURCE 1
|
||||
+#endif
|
||||
+
|
||||
#define QT_STATBUF struct stat64
|
||||
#define QT_FPOS_T fpos64_t
|
||||
#define QT_OFF_T off64_t
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
--- a/mkspecs/linux-g++/qplatformdefs.h
|
||||
+++ b/mkspecs/linux-g++/qplatformdefs.h
|
||||
@@ -16,6 +16,9 @@
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
+#ifndef _LARGEFILE64_SOURCE
|
||||
+# define _LARGEFILE64_SOURCE 1
|
||||
+#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
--- a/mkspecs/linux-llvm/qplatformdefs.h
|
||||
+++ b/mkspecs/linux-llvm/qplatformdefs.h
|
||||
@@ -16,6 +16,9 @@
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
+#ifndef _LARGEFILE64_SOURCE
|
||||
+# define _LARGEFILE64_SOURCE 1
|
||||
+#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
--- a/mkspecs/linux-lsb-g++/qplatformdefs.h
|
||||
+++ b/mkspecs/linux-lsb-g++/qplatformdefs.h
|
||||
@@ -16,6 +16,9 @@
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
+#ifndef _LARGEFILE64_SOURCE
|
||||
+# define _LARGEFILE64_SOURCE 1
|
||||
+#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# On update rebuild all pkg with qt6-base-private-devel
|
||||
pkgname=qt6-base
|
||||
version=6.8.2
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=cmake
|
||||
configure_args="-DINSTALL_DATADIR=share/qt6
|
||||
-DINSTALL_ARCHDATADIR=lib${XBPS_TARGET_WORDSIZE}/qt6
|
||||
|
|
Loading…
Add table
Reference in a new issue