patch-srclib_stdio_in_h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --- libiconv-1.14.orig/srclib/stdio.in.h 2011-08-07 15:42:06.000000000 +0200
  2. +++ libiconv-1.14/srclib/stdio.in.h 2013-10-24 16:56:53.000000000 +0200
  3. @@ -679,22 +679,11 @@ _GL_WARN_ON_USE (getline, "getline is un
  4. # endif
  5. #endif
  6. -#if @GNULIB_GETS@
  7. -# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
  8. -# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
  9. -# undef gets
  10. -# define gets rpl_gets
  11. -# endif
  12. -_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
  13. -_GL_CXXALIAS_RPL (gets, char *, (char *s));
  14. -# else
  15. -_GL_CXXALIAS_SYS (gets, char *, (char *s));
  16. -# undef gets
  17. -# endif
  18. -_GL_CXXALIASWARN (gets);
  19. /* It is very rare that the developer ever has full control of stdin,
  20. - so any use of gets warrants an unconditional warning. Assume it is
  21. - always declared, since it is required by C89. */
  22. + so any use of gets warrants an unconditional warning; besides, C11
  23. + removed it. */
  24. +#undef gets
  25. +#if HAVE_RAW_DECL_GETS
  26. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  27. #endif