void-packages/srcpkgs/qt6-base/patches/musl-limits.patch

21 lines
570 B
Diff

--- qt6-base-6.4.2.orig/qmake/library/ioutils.cpp
+++ qt6-base-6.4.2/qmake/library/ioutils.cpp
@@ -15,6 +15,7 @@
# include <unistd.h>
# include <utime.h>
# include <fcntl.h>
+# include <limits.h>
# include <errno.h>
#endif
--- qt6-base-6.4.2.orig/src/corelib/io/qstorageinfo_unix.cpp
+++ qt6-base-6.4.2/src/corelib/io/qstorageinfo_unix.cpp
@@ -23,6 +23,7 @@
# include <sys/vfs.h>
# include <mntent.h>
#elif defined(Q_OS_LINUX) || defined(Q_OS_HURD)
+# include <limits.h>
# include <mntent.h>
# include <sys/statvfs.h>
# include <sys/sysmacros.h>