Gzip is indepenedent of gunzip
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Apr 2001 03:45:37 +0000 (03:45 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Apr 2001 03:45:37 +0000 (03:45 -0000)
Config.h
archival/gzip.c
gzip.c

index 11f2150cb02f36f495cc516e03a3b78c93d0b1ed..286b68001a860fc5e9df7576ffb36cc48711646c 100644 (file)
--- a/Config.h
+++ b/Config.h
        #undef BB_FEATURE_LINUXRC
 #endif
 //
-#ifdef BB_GZIP
-       #ifndef BB_GUNZIP
-               #define BB_GUNZIP
-       #endif
-#endif
-//
 #ifdef BB_DPKG
        #ifndef BB_DPKG_DEB
                #define BB_DPKG_DEB
index b0e6b367567d72bf62dffe4da79267c667cb8ec1..ac503444e85ad4d078bd91deb9e9cc518f640898 100644 (file)
@@ -1918,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();
                        }
diff --git a/gzip.c b/gzip.c
index b0e6b367567d72bf62dffe4da79267c667cb8ec1..ac503444e85ad4d078bd91deb9e9cc518f640898 100644 (file)
--- a/gzip.c
+++ b/gzip.c
@@ -1918,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();
                        }