Index: trunk/Mars/mbase/fits.h
===================================================================
--- trunk/Mars/mbase/fits.h	(revision 11559)
+++ trunk/Mars/mbase/fits.h	(revision 11560)
@@ -27,5 +27,11 @@
 #endif
 
+#ifdef HAVE_ZLIB
 #include "izstream.h"
+#else
+#include <fstream>
+#define izstream ifstream
+#warning Support for zipped FITS files disabled.
+#endif
 
 namespace std
@@ -385,10 +391,10 @@
     fits(const string &fname) : izstream(fname.c_str())
     {
-        char simple[6];
-        read(simple, 6);
+        char simple[10];
+        read(simple, 10);
         if (!good())
             return;
 
-        if (memcmp(simple, "SIMPLE", 6))
+        if (memcmp(simple, "SIMPLE  = ", 10))
         {
             clear(rdstate()|ios::badbit);
