summaryrefslogtreecommitdiff
path: root/www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-02-13 22:04:30 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-02-13 22:04:30 +0000
commit3524f206fff55116eb9918f44a1d7d629198a592 (patch)
tree7207493b924d7546e8e15466fdb1b024a76f4db7 /www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp
parentFix calendar build. (diff)
Fix build with mozilla-devel-gtk2.
Notes
Notes: svn path=/head/; revision=75480
Diffstat (limited to 'www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp')
-rw-r--r--www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp b/www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp
new file mode 100644
index 000000000000..10189ebf7100
--- /dev/null
+++ b/www/galeon2/files/patch-mozilla_BaseProtocolContentHandler.cpp
@@ -0,0 +1,27 @@
+--- mozilla/BaseProtocolContentHandler.cpp.orig Thu Feb 13 16:21:02 2003
++++ mozilla/BaseProtocolContentHandler.cpp Thu Feb 13 16:22:10 2003
+@@ -16,6 +16,10 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#ifdef HAVE_CONFIG_H
++#include <config.h>
++#endif
++
+ #include "nsCOMPtr.h"
+ #include "nsIURI.h"
+ #include "nsIChannel.h"
+@@ -63,8 +67,13 @@
+ if (NS_FAILED(rv)) return rv;
+
+ nsCOMPtr<nsIChannel> channel;
++#if MOZILLA_SNAPSHOT > 3
++ rv = NS_NewInputStreamChannel(getter_AddRefs(channel), aURI,
++ iStream, mMimeType, NS_LITERAL_CSTRING(""));
++#else
+ rv = NS_NewInputStreamChannel(getter_AddRefs(channel), aURI,
+ iStream, mMimeType, NS_LITERAL_CSTRING(""), 0);
++#endif
+ if (NS_FAILED(rv)) return rv;
+
+ NS_IF_ADDREF (*_retval = channel);