no examples
[platform/upstream/gettext.git] / packaging / getext-stdio.in.patch
1 Index: gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
2 ===================================================================
3 --- gettext-0.18.1.1.orig/gettext-runtime/gnulib-lib/stdio.in.h
4 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h
5 @@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
6     so any use of gets warrants an unconditional warning.  Assume it is
7     always declared, since it is required by C89.  */
8  #undef gets
9 +#if HAVE_RAW_DECL_GETS
10  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
11 +#endif
12  
13  #if @GNULIB_FOPEN@
14  # if @REPLACE_FOPEN@
15 Index: gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
16 ===================================================================
17 --- gettext-0.18.1.1.orig/gettext-tools/gnulib-lib/stdio.in.h
18 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h
19 @@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
20     so any use of gets warrants an unconditional warning.  Assume it is
21     always declared, since it is required by C89.  */
22  #undef gets
23 +#if HAVE_RAW_DECL_GETS
24  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
25 +#endif
26  
27  #if @GNULIB_FOPEN@
28  # if @REPLACE_FOPEN@
29 Index: gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
30 ===================================================================
31 --- gettext-0.18.1.1.orig/gettext-tools/libgettextpo/stdio.in.h
32 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h
33 @@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
34     so any use of gets warrants an unconditional warning.  Assume it is
35     always declared, since it is required by C89.  */
36  #undef gets
37 +#if HAVE_RAW_DECL_GETS
38  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
39 +#endif
40  
41  #if @GNULIB_FOPEN@
42  # if @REPLACE_FOPEN@