summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qt3-libs/patches/patch-ah')
-rw-r--r--x11/qt3-libs/patches/patch-ah22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11/qt3-libs/patches/patch-ah b/x11/qt3-libs/patches/patch-ah
new file mode 100644
index 00000000000..110f51cb882
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-ah
@@ -0,0 +1,22 @@
+$NetBSD: patch-ah,v 1.5 2004/10/13 02:08:43 tv Exp $
+
+--- src/tools/qdatastream.cpp.orig Thu Aug 5 10:41:57 2004
++++ src/tools/qdatastream.cpp
+@@ -484,6 +484,8 @@ void QDataStream::setByteOrder( int bo )
+
+ #if defined(Q_OS_HPUX) && !defined(__LP64__)
+ extern "C" long long __strtoll( const char *, char**, int );
++#elif defined(Q_OS_INTERIX)
++extern "C" long long strtoq( const char *, char**, int );
+ #endif
+
+ static Q_INT64 read_int_ascii( QDataStream *s )
+@@ -508,7 +510,7 @@ static Q_INT64 read_int_ascii( QDataStre
+ return _atoi64( buf );
+ # elif defined(Q_OS_HPUX)
+ return __strtoll( buf, (char**)0, 10 );
+-# elif defined(Q_OS_MACX) && defined(QT_MACOSX_VERSION) && QT_MACOSX_VERSION < 0x1020
++# elif (defined(Q_OS_MACX) && defined(QT_MACOSX_VERSION) && QT_MACOSX_VERSION < 0x1020) || defined(Q_OS_INTERIX)
+ return strtoq( buf, (char**)0, 10 );
+ # else
+ return strtoll( buf, (char**)0, 10 ); // C99 function