Skip to content
Snippets Groups Projects
Commit 0bd63ce8 authored by Erik Schnetter's avatar Erik Schnetter
Browse files

Make libiconv work with C11

C11 does not provide gets() any more, so we cannot reference it
parent 417fe0ec
No related branches found
No related tags found
No related merge requests found
--- 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
...@@ -34,6 +34,10 @@ class Libiconv(Package): ...@@ -34,6 +34,10 @@ class Libiconv(Package):
version('1.14', 'e34509b1623cec449dfeb73d7ce9c6c6') version('1.14', 'e34509b1623cec449dfeb73d7ce9c6c6')
# We cannot set up a warning for gets(), since gets() is not part
# of C11 any more and thus might not exist.
patch("gets.patch")
def install(self, spec, prefix): def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix), configure('--prefix={0}'.format(prefix),
'--enable-extra-encodings') '--enable-extra-encodings')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment