spack/var/spack/repos/builtin/packages/libiconv/gets.patch
Erik Schnetter 0bd63ce8be Make libiconv work with C11
C11 does not provide gets() any more, so we cannot reference it
2016-09-02 10:53:59 -04:00

14 lines
400 B
Diff

--- a/srclib/stdio.in.h
+++ b/srclib/stdio.in.h
@@ -692,10 +692,6 @@
# undef gets
# endif
_GL_CXXALIASWARN (gets);
-/* It is very rare that the developer ever has full control of stdin,
- so any use of gets warrants an unconditional warning. Assume it is
- always declared, since it is required by C89. */
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif