aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2003-01-28 10:29:47 +0800
committerseanc <seanc@FreeBSD.org>2003-01-28 10:29:47 +0800
commit1df059c142799e6a48ae583d7a65bf7cceae75f8 (patch)
tree509e75902dd0257afac93c6a837d8872ed105d60 /net-p2p
parent90ce16d47383978e70b35f3ac5aa743d5dc8a006 (diff)
downloadfreebsd-ports-gnome-1df059c142799e6a48ae583d7a65bf7cceae75f8.tar.gz
freebsd-ports-gnome-1df059c142799e6a48ae583d7a65bf7cceae75f8.tar.zst
freebsd-ports-gnome-1df059c142799e6a48ae583d7a65bf7cceae75f8.zip
People still use 4.X??? Whoa!
Fix qtella for -STABLE users with hack to get around headers and types moving around in GCC. Submitted by: maintainer && "Scott I. Remick" <siremick@yahoo.com>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/qtella/files/patch-include::SHA1Storage.h11
-rw-r--r--net-p2p/qtella/files/patch-include::sha1.h23
-rw-r--r--net-p2p/qtella/files/patch-src::SHA1Storage.cpp6
3 files changed, 34 insertions, 6 deletions
diff --git a/net-p2p/qtella/files/patch-include::SHA1Storage.h b/net-p2p/qtella/files/patch-include::SHA1Storage.h
new file mode 100644
index 000000000000..2be3e7ea9228
--- /dev/null
+++ b/net-p2p/qtella/files/patch-include::SHA1Storage.h
@@ -0,0 +1,11 @@
+--- include/SHA1Storage.h.orig Sun Jan 26 21:43:06 2003
++++ include/SHA1Storage.h Sun Jan 26 21:41:40 2003
+@@ -7,7 +7,7 @@
+ #include <qobject.h>
+ #include <qstring.h>
+ #include <qtimer.h>
+-#include <stdint.h>
++#include <inttypes.h>
+
+ #include "SharedFile.h"
+
diff --git a/net-p2p/qtella/files/patch-include::sha1.h b/net-p2p/qtella/files/patch-include::sha1.h
new file mode 100644
index 000000000000..4428aecbc433
--- /dev/null
+++ b/net-p2p/qtella/files/patch-include::sha1.h
@@ -0,0 +1,23 @@
+--- include/sha1.h.orig Wed Oct 2 08:27:57 2002
++++ include/sha1.h Mon Jan 27 17:24:25 2003
+@@ -5,7 +5,7 @@
+ extern "C" {
+ #endif
+
+-#include <stdint.h>
++#include <inttypes.h>
+ /*
+ * If you do not have the ISO standard stdint.h header file, then you
+ * must typdef the following:
+@@ -27,6 +27,11 @@
+ };
+ #endif
+ #define SHA1HashSize 20
++
++#include <osreldate.h>
++#if __FreeBSD_version < 500000
++typedef uint32_t int_least16_t;
++#endif
+
+ /*
+ * This structure will hold context information for the SHA-1
diff --git a/net-p2p/qtella/files/patch-src::SHA1Storage.cpp b/net-p2p/qtella/files/patch-src::SHA1Storage.cpp
index f93283dbe069..350f45913092 100644
--- a/net-p2p/qtella/files/patch-src::SHA1Storage.cpp
+++ b/net-p2p/qtella/files/patch-src::SHA1Storage.cpp
@@ -1,11 +1,5 @@
--- src/SHA1Storage.cpp.orig Fri Dec 20 14:06:10 2002
+++ src/SHA1Storage.cpp Fri Dec 20 14:13:03 2002
-@@ -1,4 +1,4 @@
--#include <iostream.h>
-+#include <iostream>
- #include <qdir.h>
- #include <qfile.h>
- #include <qtextstream.h>
@@ -100,7 +100,7 @@
QString *SHA1Storage::get(SharedFile *sf)
{