blob: fc6058a701f7b459c41fbc7ef68cb18ae0e194ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- a/libbb/gz_open.c
+++ b/libbb/gz_open.c
@@ -29,7 +29,12 @@
#include <unistd.h>
#include "libbb.h"
+#ifdef OPKG_USE_VFORK
+static const int gz_use_vfork = OPKG_USE_VFORK;
+#else
static int gz_use_vfork;
+#endif
+
FILE *
gz_open(FILE *compressed_file, int *pid)
@@ -38,7 +43,9 @@ gz_open(FILE *compressed_file, int *pid)
off_t floc;
int cfile = -1;
+#ifndef OPKG_USE_VFORK
gz_use_vfork = (getenv("OPKG_USE_VFORK") != NULL);
+#endif
if (gz_use_vfork) {
/* Create a new file descriptor for the input stream
|