• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/qt5/qt5base/qt5base-0003-uclibc-no-lfs.patch
Fatih AşıcıFatih Aşıcı committed 62802d24c0702 Oct 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 6f88b27de256266947a7f6a3e70e18510754aab2 Mon Sep 17 00:00:00 2001
2
From: Peter Korsgaard <jacmet@sunsite.dk>
3
Date: Sat, 14 Apr 2012 20:36:07 +0200
4
Subject: [PATCH] mkspecs/common/posix: fix !largefile builds on uClibc
5
​
6
uClibc doesn't even define O_LARGEFILE when not configured with large file
7
support, so ensure this define is only used when Qt is built with
8
-largefile, otherwise the build fails with:
9
​
10
io/qtemporaryfile.cpp: In function 'bool createFileFromTemplate(
11
        NativeFileHandle&, QFileSystemEntry::NativePath&, size_t, size_t,
12
        QSystemError&)':
13
io/qtemporaryfile.cpp:197:57: error: 'O_LARGEFILE' was not declared in
14
        this scope
15
​
16
Moved to qt5 by Thomas Petazzoni.
17
​
18
Reported-Upstream: https://bugreports.qt-project.org/browse/QTBUG-25321
19
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
20
​
21
Index: b/mkspecs/common/posix/qplatformdefs.h
22
===================================================================
23
--- a/mkspecs/common/posix/qplatformdefs.h
24
+++ b/mkspecs/common/posix/qplatformdefs.h
25
@@ -123,7 +123,11 @@
26
 #define QT_READ                 ::read
27
 #define QT_WRITE                ::write
28
 
29
+#ifdef QT_LARGEFILE_SUPPORT
30
 #define QT_OPEN_LARGEFILE       O_LARGEFILE
31
+#else
32
+#define QT_OPEN_LARGEFILE       0
33
+#endif
34
 #define QT_OPEN_RDONLY          O_RDONLY
35
 #define QT_OPEN_WRONLY          O_WRONLY
36
 #define QT_OPEN_RDWR            O_RDWR
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.