diff -uNr cfitsio-orig/fitsio2.h cfitsio/fitsio2.h --- cfitsio-orig/fitsio2.h 2008-12-02 15:28:35.000000000 -0600 +++ cfitsio/fitsio2.h 2009-06-13 12:41:37.000000000 -0500 @@ -54,7 +54,7 @@ #define BYTESWAPPED TRUE #define LONGSIZE 64 -#elif defined(__sparcv9) +#elif defined(__sparcv9) || (defined(__sparc__) && defined(__arch64__)) /* SUN Solaris7 in 64-bit mode */ #define BYTESWAPPED FALSE #define MACHINE NATIVE diff -uNr cfitsio-orig/fitsio.h cfitsio/fitsio.h --- cfitsio-orig/fitsio.h 2009-01-05 11:20:41.000000000 -0600 +++ cfitsio/fitsio.h 2009-06-13 12:49:45.000000000 -0500 @@ -80,7 +80,7 @@ || defined(__x86_64__) \ */ #if (defined(__alpha) && ( defined(__unix__) || defined(__NetBSD__) )) \ - || defined(__sparcv9) \ + || defined(__sparcv9) || (defined(__sparc__) && defined(__arch64__)) \ || defined(__powerpc64__) || defined(__64BIT__) \ || (defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64) \ || defined( _MSC_VER)|| defined(__BORLANDC__)