-extern int do_dump (char *, int, int, FILE *);
+#ifdef COMPACTFORMAT
+extern int do_dump (char *, int, int, gzFile);
+extern int do_undump (char *, int, int, gzFile);
+#define dump_file gz_fmt_file
+#else
+extern int do_dump (char *, int, int, FILE *);