]> git.pld-linux.org Git - packages/diffutils.git/blob - diffutils-stdio-gets.patch
- fix missing gets declaration
[packages/diffutils.git] / diffutils-stdio-gets.patch
1 diff -up diffutils-3.2/lib/stdio.in.h.stdio-gets diffutils-3.2/lib/stdio.in.h
2 --- diffutils-3.2/lib/stdio.in.h.stdio-gets     2012-07-23 17:29:22.311787651 +0100
3 +++ diffutils-3.2/lib/stdio.in.h        2012-07-23 17:29:58.316908463 +0100
4 @@ -681,26 +681,6 @@ _GL_WARN_ON_USE (getline, "getline is un
5  # endif
6  #endif
7  
8 -#if @GNULIB_GETS@
9 -# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
10 -#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
11 -#   undef gets
12 -#   define gets rpl_gets
13 -#  endif
14 -_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
15 -_GL_CXXALIAS_RPL (gets, char *, (char *s));
16 -# else
17 -_GL_CXXALIAS_SYS (gets, char *, (char *s));
18 -#  undef gets
19 -# endif
20 -_GL_CXXALIASWARN (gets);
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 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
25 -#endif
26 -
27 -
28  #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
29  struct obstack;
30  /* Grow an obstack with formatted output.  Return the number of
This page took 0.047186 seconds and 3 git commands to generate.