need to fix stdio.h for gets in gettext-tools too

This commit is contained in:
Jens Petersen 2012-07-27 19:09:39 +09:00
parent 5ea031c7fe
commit bc338ba2db
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
--- gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h~ 2010-05-18 04:56:12.000000000 +0900 --- gnulib-lib/stdio.in.h~ 2010-05-18 04:56:12.000000000 +0900
+++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2012-07-27 17:39:41.812242483 +0900 +++ gnulib-lib/stdio.in.h 2012-07-27 17:39:41.812242483 +0900
@@ -140,8 +140,10 @@ @@ -140,8 +140,10 @@
/* It is very rare that the developer ever has full control of stdin, /* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is so any use of gets warrants an unconditional warning. Assume it is

View File

@ -138,7 +138,13 @@ Emacs.
%setup -q %setup -q
%patch1 -p1 -b .orig %patch1 -p1 -b .orig
%patch2 -p1 -b .crash %patch2 -p1 -b .crash
%patch3 -p1 -b .gets
# patch gnulib for deprecated gets()
cd gettext-runtime
%patch3 -p0 -b .gets
cd ../gettext-tools
%patch3 -p0 -b .gets
cd ..
%build %build