support seeking the recorded video
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-core / gettext / gettext / gettext_remove_gets.patch
1 diff --git a/gettext-runtime/gnulib-lib/stdio.in.h b/gettext-runtime/gnulib-lib/stdio.in.h
2 index c43848e..38e0b53 100644
3 --- a/gettext-runtime/gnulib-lib/stdio.in.h
4 +++ b/gettext-runtime/gnulib-lib/stdio.in.h
5 @@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
6  /* It is very rare that the developer ever has full control of stdin,
7     so any use of gets warrants an unconditional warning.  Assume it is
8     always declared, since it is required by C89.  */
9 +#ifdef gets
10  #undef gets
11  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
12 +#endif
13  
14  #if @GNULIB_FOPEN@
15  # if @REPLACE_FOPEN@
16 diff --git a/gettext-tools/gnulib-lib/stdio.in.h b/gettext-tools/gnulib-lib/stdio.in.h
17 index c43848e..38e0b53 100644
18 --- a/gettext-tools/gnulib-lib/stdio.in.h
19 +++ b/gettext-tools/gnulib-lib/stdio.in.h
20 @@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
21  /* It is very rare that the developer ever has full control of stdin,
22     so any use of gets warrants an unconditional warning.  Assume it is
23     always declared, since it is required by C89.  */
24 +#ifdef gets
25  #undef gets
26  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
27 +#endif
28  
29  #if @GNULIB_FOPEN@
30  # if @REPLACE_FOPEN@
31 diff --git a/gettext-tools/libgettextpo/stdio.in.h b/gettext-tools/libgettextpo/stdio.in.h
32 index c43848e..38e0b53 100644
33 --- a/gettext-tools/libgettextpo/stdio.in.h
34 +++ b/gettext-tools/libgettextpo/stdio.in.h
35 @@ -140,8 +140,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
36  /* It is very rare that the developer ever has full control of stdin,
37     so any use of gets warrants an unconditional warning.  Assume it is
38     always declared, since it is required by C89.  */
39 +#ifdef gets
40  #undef gets
41  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
42 +#endif
43  
44  #if @GNULIB_FOPEN@
45  # if @REPLACE_FOPEN@