Magellan Linux

Contents of /trunk/gettext/patches/gettext-0.18.1.1-gnulib-gets.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1842 - (show annotations) (download)
Fri Jul 13 13:50:46 2012 UTC (11 years, 10 months ago) by niro
File size: 1900 byte(s)
-fix ftbfs with newer glibc
1 diff -Naur gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h gettext-0.18.1.1-magellan/gettext-runtime/gnulib-lib/stdio.in.h
2 --- gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2010-05-17 21:56:12.000000000 +0200
3 +++ gettext-0.18.1.1-magellan/gettext-runtime/gnulib-lib/stdio.in.h 2012-07-13 17:45:10.437982672 +0200
4 @@ -141,7 +141,9 @@
5 so any use of gets warrants an unconditional warning. Assume it is
6 always declared, since it is required by C89. */
7 #undef gets
8 +#if HAVE_RAW_DECL_GETS
9 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
10 +#endif
11
12 #if @GNULIB_FOPEN@
13 # if @REPLACE_FOPEN@
14 diff -Naur gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h gettext-0.18.1.1-magellan/gettext-tools/gnulib-lib/stdio.in.h
15 --- gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h 2010-05-24 11:42:46.000000000 +0200
16 +++ gettext-0.18.1.1-magellan/gettext-tools/gnulib-lib/stdio.in.h 2012-07-13 17:45:01.245982319 +0200
17 @@ -141,7 +141,9 @@
18 so any use of gets warrants an unconditional warning. Assume it is
19 always declared, since it is required by C89. */
20 #undef gets
21 +#if HAVE_RAW_DECL_GETS
22 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
23 +#endif
24
25 #if @GNULIB_FOPEN@
26 # if @REPLACE_FOPEN@
27 diff -Naur gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h gettext-0.18.1.1-magellan/gettext-tools/libgettextpo/stdio.in.h
28 --- gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h 2010-05-17 21:58:03.000000000 +0200
29 +++ gettext-0.18.1.1-magellan/gettext-tools/libgettextpo/stdio.in.h 2012-07-13 17:44:52.461982809 +0200
30 @@ -141,7 +141,9 @@
31 so any use of gets warrants an unconditional warning. Assume it is
32 always declared, since it is required by C89. */
33 #undef gets
34 +#if HAVE_RAW_DECL_GETS
35 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
36 +#endif
37
38 #if @GNULIB_FOPEN@
39 # if @REPLACE_FOPEN@