+ off_t floc;
+ int cfile = -1;
+
+ gz_use_vfork = (getenv("OPKG_USE_VFORK") != NULL);
+
+ if (gz_use_vfork) {
+ /* Create a new file descriptor for the input stream
+ * (it *must* be associated with a file), and lseek()
+ * to the same position in that fd as the stream.
+ */
+ cfile = dup(fileno(compressed_file));
+ floc = ftello(compressed_file);
+ lseek(cfile, floc, SEEK_SET);
+ setenv("GZIP", "--quiet", 0);
+ }