Revert "opkg: disable the use of vfork for the host build"
[openwrt/openwrt.git] / package / system / opkg / patches / 280-use-vfork.patch
1 --- a/libbb/gz_open.c
2 +++ b/libbb/gz_open.c
3 @@ -29,7 +29,7 @@
4 #include <unistd.h>
5 #include "libbb.h"
6
7 -static int gz_use_vfork;
8 +static const int gz_use_vfork = 1;
9
10 FILE *
11 gz_open(FILE *compressed_file, int *pid)
12 @@ -38,8 +38,6 @@ gz_open(FILE *compressed_file, int *pid)
13 off_t floc;
14 int cfile = -1;
15
16 - gz_use_vfork = (getenv("OPKG_USE_VFORK") != NULL);
17 -
18 if (gz_use_vfork) {
19 /* Create a new file descriptor for the input stream
20 * (it *must* be associated with a file), and lseek()