File aarch64-support.patch of Package cfitsio
Index: cfitsio/fitsio2.h =================================================================== --- cfitsio.orig/fitsio2.h +++ cfitsio/fitsio2.h @@ -195,6 +195,18 @@ extern int Fitsio_Pthread_Status; #define BYTESWAPPED FALSE #endif +#elif defined(__aarch64__) + +/* AArch64 CPU can be used in both little and big endian modes */ + +#if defined(__AARCH64EB__) +#define BYTESWAPPED FALSE +#define MACHINE NATIVE +#else +#define BYTESWAPPED TRUE +#endif +#define LONGSIZE 64 + #else /* assume all other machine uses the same IEEE formats as used in FITS files */