]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/lowleveltime.cxx
Fix a problem for systems with older headers
[simgear.git] / simgear / timing / lowleveltime.cxx
index ec3cf98844e16c46227a72054376683f497cbf81..84e72c834c10ece73696bfbfea07d7987fbde322 100644 (file)
@@ -862,8 +862,12 @@ void fgtzfile_read (const char *file)
 //     }
 
   f = fopen (file, "rb");
-  if (f == NULL)
-    return;
+
+  if (f == NULL) {
+      perror( "fgtzfile_read(): " );
+      errno = 0;
+      return;
+  }
 
   if (fread ((void *) &tzhead, sizeof (tzhead), 1, f) != 1)
     goto lose;