additional mozilla fixes
PATCH 1/1 additional mozilla fixes
Below is a small patch which makes mozilla/netscape plugins work. Yes, I finally got tired of mozilla/ia64 crashing whenever visiting, a site with, e.g., flash content.
Speaking of which: does anyone understand the source policy for the Macromedia flash player? If it allows for re-distribution of the binary, it might be worthwhile to try it out. I did consider using the open source flash player from Olivier Odebon
(http://www.swift-tools.com/Flash/). It can be made to work on ia64, but it has some problems, e.g., with uncompressed sound, and seems to make mozilla unstable (though that could be my fault; i used it as an experiment to teach it esd support... ;-).
--david
Index: config/mkdepend/imakemdep.h
=================================RCS file: /cvsroot/mozilla/config/mkdepend/imakemdep.h,v retrieving revision 3.2
mkdepend/imakemdep.h +3 -0
@@ -437,6 +437,9 @@# ifdef __i386__ "-D__i386__",# endif +# ifdef __ia64 + "-D__ia64", +# endif # ifdef __GNUC__ "-traditional",# endif
Index: directory/c-sdk/ldap/libraries/liblber/lber-int.h
=================================RCS file: /cvsroot/mozilla/directory/c-sdk/ldap/libraries/liblber/lber-int.h,v retrieving revision 1.2.2.3
c-sdk/ldap/libraries/liblber/lber-int.h +5 -6
@@ -170,23 +170,22 @@ (((_l)&0xff0000)>>8) + (((_l)&0xff000000)>>24))#define LBER_NTOHL (_l) LBER_HTONL(_l) -#elif !defined(__alpha) || defined(VMS ) +#elif !defined(__ia64) && (!defined(__alpha) || defined(VMS ))#define LBER_HTONL ( l ) htonl( l )#define LBER_NTOHL ( l ) ntohl( l ) -#else /* __alpha */ +#else /* __alpha || __ia64 */ /* -* htonl and ntohl on the DEC Alpha under OSF 1 seem to only swap the -* lower-order 32-bits of a (64-bit) long, so we define correct versions -* here. +* htonl and ntohl on the 64-bit UNIX platforms only swap the lower-order +* 32-bits of a (64-bit) long, so we define correct versions here. */ #define LBER_HTONL ( l ) (((long)htonl( (l) & 0x00000000FFFFFFFF )) << 32 \ | htonl( ( (l) & 0xFFFFFFFF00000000 ) >> 32 ))#define LBER_NTOHL ( l ) (((long)ntohl( (l) & 0x00000000FFFFFFFF )) << 32 \ | ntohl( ( (l) & 0xFFFFFFFF00000000 ) >> 32 )) -#endif /* __alpha */ +#endif /* __alpha || __ia64 */ /* function prototypes */
Index: embedding/browser/activex/src/pluginhostctrl/pluginsdk_include/npapi.h =================================RCS file: /cvsroot/mozilla/embedding/browser/activex/src/pluginhostctrl/pluginsdk_include/npapi.h,v retrieving revision 1.1
browser/activex/src/pluginhostctrl/pluginsdk_include/npapi.h +6 -6
@@ -58,21 +58,21 @@typedef unsigned short uint16 ;#endif #ifndef _UINT32 -#if defined(__alpha) +#if defined(__alpha) || defined(__ia64)typedef unsigned int uint32 ; -#else /* __alpha */ +#else /* __alpha || __ia64 */ typedef unsigned long uint32 ; -#endif /* __alpha */ +#endif /* __alpha || __ia64 */ #endif #ifndef _INT16typedef short int16 ;#endif #ifndef _INT32 -#if defined(__alpha) +#if defined(__alpha) || defined(__ia64)typedef int int32 ; -#else /* __alpha */ +#else /* __alpha || __ia64 */ typedef long int32 ; -#endif /* __alpha */ +#endif /* __alpha || __ia64 */ #endif #ifndef FALSE
Index: include/npapi.h
=================================RCS file: /cvsroot/mozilla/include/npapi.h,v retrieving revision 3.18
npapi.h +2 -2
@@ -164,7 +164,7 @@#endif #ifndef _UINT32 -# if defined(__alpha) +# if defined(__alpha) || defined(__ia64)typedef unsigned int uint32 ;# else /* __alpha */ typedef unsigned long uint32 ;
@@ -180,7 +180,7 @@#endif #ifndef _INT32 -# if defined(__alpha) +# if defined(__alpha) || defined(__ia64)typedef int int32 ;# else /* __alpha */ typedef long int32 ;