qt: ensure that ptrdiff_t is defined for qt@3.3.8b

This commit is contained in:
Milton Woods 2018-01-07 12:02:45 +11:00
parent e5de90d2c9
commit 8983b2b1ec
2 changed files with 21 additions and 0 deletions

View File

@ -73,6 +73,7 @@ class Qt(Package):
patch('qt3accept.patch', when='@3.3.8b') patch('qt3accept.patch', when='@3.3.8b')
patch('qt3krell.patch', when='@3.3.8b+krellpatch') patch('qt3krell.patch', when='@3.3.8b+krellpatch')
patch('qt3ptrdiff.patch', when='@3.3.8b')
# see https://bugreports.qt.io/browse/QTBUG-57656 # see https://bugreports.qt.io/browse/QTBUG-57656
patch('QTBUG-57656.patch', when='@5.8.0') patch('QTBUG-57656.patch', when='@5.8.0')

View File

@ -0,0 +1,20 @@
--- a/src/tools/qmap.h 2008-01-16 06:09:13.000000000 +1100
+++ b/src/tools/qmap.h 2018-01-07 11:32:38.720893324 +1100
@@ -52,6 +52,7 @@
#ifndef QT_NO_STL
#include <iterator>
#include <map>
+#include <stddef.h>
#endif
//#define QT_CHECK_MAP_RANGE
--- a/src/tools/qvaluelist.h 2008-01-16 06:09:13.000000000 +1100
+++ b/src/tools/qvaluelist.h 2018-01-07 11:33:03.393206961 +1100
@@ -50,6 +50,7 @@
#ifndef QT_NO_STL
#include <iterator>
#include <list>
+#include <stddef.h>
#endif
//#define QT_CHECK_VALUELIST_RANGE