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