Package: cfitsio3 Version: 3.210-3 Severity: important Tags: patch User: [email protected] Usertags: sh4 X-Debbugs-CC: [email protected]
Hi, I am now trying to run Debian on Renesas SH(sh4) CPU. http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4 cfitsio3 can build on SH4. But this does not work normally. Because cfitsio3 does not support Renesas SH. I made patch to support SH. Could you apply this patch? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
--- a/fitsio2.h 2010-01-12 12:25:48.000000000 +0000 +++ b/fitsio2.h 2010-01-12 12:53:44.000000000 +0000 @@ -169,7 +169,15 @@ /* (__ARMEL__ would be defined on little-endian, but not on big-endian). */ #define BYTESWAPPED TRUE - + +#elif defined(__sh__) + +# if defined(__LITTLE_ENDIAN__) +# define BYTESWAPPED TRUE +# else +# define BYTESWAPPED FALSE +# endif + #else /* assume all other machine uses the same IEEE formats as used in FITS files */

