Eliminated seeks so that we work correctly on pipes, and removed reliance on
[oweals/busybox.git] / gzip.c
diff --git a/gzip.c b/gzip.c
index 2a76046486bb83cbd83b75747bdb4ba9a065e9c4..ac503444e85ad4d078bd91deb9e9cc518f640898 100644 (file)
--- a/gzip.c
+++ b/gzip.c
@@ -278,7 +278,6 @@ extern int zip (int in, int out);
 extern int file_read (char *buf, unsigned size);
 
        /* in unzip.c */
-extern int unzip (int in, int out);
 extern int check_zipfile (int in);
 
        /* in unpack.c */
@@ -1919,8 +1918,10 @@ int gzip_main(int argc, char **argv)
                        case '1': case '2': case '3': case '4': case '5':
                        case '6': case '7': case '8': case '9':
                                break;
+#ifdef BB_GUNZIP
                        case 'd':
                                exit(gunzip_main(argc, argv));
+#endif
                        default:
                                show_usage();
                        }