oe build fix
[vuplus_openvuplus] / meta-openvuplus / recipes-devtools / m4 / m4-native / m4_remove_gets.patch
1 diff --git a/lib/stdio.in.h b/lib/stdio.in.h
2 index b7f3b6f..d7c40bb 100644
3 --- a/lib/stdio.in.h
4 +++ b/lib/stdio.in.h
5 @@ -161,8 +161,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@