diff --git a/indent-2.2.9-gcc4.patch b/indent-2.2.9-gcc4.patch new file mode 100644 index 0000000..02d2c1d --- /dev/null +++ b/indent-2.2.9-gcc4.patch @@ -0,0 +1,32 @@ +--- indent-2.2.9/man/texinfo2man.c.jj 2002-01-17 14:28:51.000000000 -0500 ++++ indent-2.2.9/man/texinfo2man.c 2005-04-10 08:37:22.283581780 -0400 +@@ -1,4 +1,5 @@ + #include ++#include + #include + #include + #include +--- indent-2.2.9/src/indent.h.jj 2002-11-10 16:02:48.000000000 -0500 ++++ indent-2.2.9/src/indent.h 2005-04-10 08:35:06.395429529 -0400 +@@ -96,11 +96,6 @@ extern char *cur_line; + /* Size of the input program, not including the ' \n\0' we add at the end */ + extern unsigned long in_prog_size; + +-/* The output file. */ +-extern FILE *output; +- +- +- + extern char *labbuf; /* buffer for label */ + extern char *s_lab; /* start ... */ + extern char *e_lab; /* .. and end of stored label */ +--- indent-2.2.9/src/output.c.jj 2002-12-12 12:36:49.000000000 -0500 ++++ indent-2.2.9/src/output.c 2005-04-10 08:35:54.511631253 -0400 +@@ -12,6 +12,7 @@ + */ + + #include ++#include + #include + #include + #include diff --git a/indent.spec b/indent.spec index e6fd7ae..9c17ec3 100644 --- a/indent.spec +++ b/indent.spec @@ -7,6 +7,7 @@ Group: Applications/Text URL: http://www.gnu.org/software/indent/ Source: ftp://ftp.gnu.org/pub/gnu/indent/indent-%{version}.tar.gz Patch: indent-2.2.9-fix.patch +Patch2: indent-2.2.9-gcc4.patch Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -22,6 +23,7 @@ you want a program to format your code. %prep %setup -q %patch -p1 +%patch2 -p1 %build