File ppc64le-support.patch of Package cfitsio

Index: cfitsio/fitsio2.h
===================================================================
--- cfitsio.orig/fitsio2.h
+++ cfitsio/fitsio2.h
@@ -107,8 +107,12 @@ extern int Fitsio_Pthread_Status;
 
 #elif defined(__powerpc64__) || defined(__64BIT__) /* IBM 64-bit AIX powerpc*/
                               /* could also test for __ppc64__ or __PPC64 */
+#ifdef __LITTLE_ENDIAN__
+#define BYTESWAPPED TRUE
+#else
 #define BYTESWAPPED FALSE
 #define MACHINE NATIVE
+#endif
 #define LONGSIZE 64   
 
 #elif defined(_MIPS_SZLONG)
openSUSE Build Service is sponsored by