|
|
|
@ -60,3 +60,22 @@ diff -up hdf-4.2.10/hdf/src/hdfi.h.ppc64le hdf-4.2.10/hdf/src/hdfi.h
|
|
|
|
|
/* Linux 64 */
|
|
|
|
|
#if defined(__linux__) && defined __x86_64__ && !(defined SUN) /* i.e. 64-bit Linux but not SunOS on Intel */
|
|
|
|
|
|
|
|
|
|
--- hdf-4.2.10/mfhdf/libsrc/xdrposix.c.patched
|
|
|
|
|
+++ hdf-4.2.10/mfhdf/libsrc/xdrposix.c
|
|
|
|
|
@@ -431,7 +431,7 @@ xdrposix_getlong(xdrs, lp)
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
unsigned char *up = (unsigned char *)lp ;
|
|
|
|
|
-#if (defined AIX5L64 || defined __powerpc64__ || defined __s390x__ || (defined __hpux && __LP64__))
|
|
|
|
|
+#if (defined AIX5L64 || (defined __powerpc64__ && !defined __LITTLE_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__))
|
|
|
|
|
*lp = 0 ;
|
|
|
|
|
up += (sizeof(long) - 4) ;
|
|
|
|
|
#endif
|
|
|
|
|
@@ -458,7 +458,7 @@ xdrposix_putlong(xdrs, lp)
|
|
|
|
|
netlong mycopy = htonl(*lp);
|
|
|
|
|
up = (unsigned char *)&mycopy;
|
|
|
|
|
#endif
|
|
|
|
|
-#if (defined AIX5L64 || defined __powerpc64__ || defined __s390x__ || (defined __hpux && __LP64__))
|
|
|
|
|
+#if (defined AIX5L64 || (defined __powerpc64__ && !defined __LITTLE_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__))
|
|
|
|
|
up += (sizeof(long) - 4) ;
|
|
|
|
|
#endif
|
|
|
|
|