563c12040c594f9d9f46eed3af229e69f0201a26
[openwrt/staging/stintel.git] / tools / bison / patches / 100-fix-gets-removal.patch
1 diff --git a/lib/stdio.in.h b/lib/stdio.in.h
2 index ff7c9c8..f391832 100644
3 --- a/lib/stdio.in.h
4 +++ b/lib/stdio.in.h
5 @@ -739,14 +739,6 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
6 # endif
7 #endif
8
9 -/* It is very rare that the developer ever has full control of stdin,
10 - so any use of gets warrants an unconditional warning; besides, C11
11 - removed it. */
12 -#undef gets
13 -#if HAVE_RAW_DECL_GETS && !defined __cplusplus
14 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
15 -#endif
16 -
17 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
18 struct obstack;
19 /* Grow an obstack with formatted output. Return the number of