diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-02-13 22:04:30 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-02-13 22:04:30 +0000 |
commit | 3524f206fff55116eb9918f44a1d7d629198a592 (patch) | |
tree | 7207493b924d7546e8e15466fdb1b024a76f4db7 /www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp | |
parent | Fix calendar build. (diff) |
Fix build with mozilla-devel-gtk2.
Notes
Notes:
svn path=/head/; revision=75480
Diffstat (limited to 'www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp')
-rw-r--r-- | www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp b/www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp new file mode 100644 index 000000000000..d95b514b9019 --- /dev/null +++ b/www/galeon2/files/patch-mozilla_BaseHelpProtocolHandler.cpp @@ -0,0 +1,41 @@ +--- mozilla/BaseHelpProtocolHandler.cpp.orig Thu Feb 13 16:08:39 2003 ++++ mozilla/BaseHelpProtocolHandler.cpp Thu Feb 13 16:13:24 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 "outputbuffer.h" + + #ifdef NOT_PORTED +@@ -194,17 +198,23 @@ + + /* finish the rendering */ + nsCOMPtr<nsIInputStream> iStream; +- PRUint32 size; +- +- rv = sStream->GetLength(&size); +- if (NS_FAILED(rv)) return rv; + + rv = sStream->NewInputStream(0, getter_AddRefs(iStream)); + if (NS_FAILED(rv)) return rv; + ++#if MOZILLA_SNAPSHOT > 3 ++ rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI, ++ iStream, NS_LITERAL_CSTRING("text/html"), ++ NS_LITERAL_CSTRING("utf-8")); ++#else ++ PRUint32 size; ++ rv = sStream->GetLength(&size); ++ if (NS_FAILED(rv)) return rv; ++ + rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI, + iStream, NS_LITERAL_CSTRING("text/html"), + NS_LITERAL_CSTRING("utf-8"), size); ++#endif + if (NS_FAILED(rv)) return rv; + + return rv; |