Quick fix for building which on gcc2

This commit is contained in:
Chris Roberts
2013-10-20 12:35:08 -06:00
parent 0dd882f6ee
commit 97abd9d4f7
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
diff -up which-2.20/which.c.orig which-2.20/which.c
--- which-2.20/which.c.orig 2013-10-20 12:30:35.994574336 -0600
+++ which-2.20/which.c 2013-10-20 12:30:21.694681600 -0600
@@ -428,6 +428,7 @@ static uid_t const superuser = 0;
int main(int argc, char *argv[])
{
+ int function_start_type = 0;
const char *path_list = getenv("PATH");
int short_option, fail_count = 0;
static int long_option;
@@ -537,7 +538,6 @@ int main(int argc, char *argv[])
return -1;
}
- int function_start_type = 0;
if (read_alias || read_functions)
{
char buf[1024];

View File

@@ -4,9 +4,11 @@ COPYRIGHT="Free Software Foundation"
LICENSE="GNU GPL v2"
SRC_URI="http://ftp.gnu.org/gnu/which/which-2.20.tar.gz"
CHECKSUM_MD5="95be0501a466e515422cde4af46b2744"
REVISION="1"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86"
PATCHES="which-2.20.patch"
PROVIDES="
which = $portVersion
cmd:which = $portVersion