mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Quick fix for building which on gcc2
This commit is contained in:
19
sys-apps/which/patches/which-2.20.patch
Normal file
19
sys-apps/which/patches/which-2.20.patch
Normal 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];
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user