summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-16 22:34:18 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-24 01:40:38 -0500
commit44f6e516df5f4871b4666c325161df388d3c7ba7 (patch)
tree3290cce1ad481f25ff9f4ce7ac35038397e630e0 /package
parent4a499a150d592b7c1de7bbc626b9bcc0bcca6c74 (diff)
fix compile
Diffstat (limited to 'package')
-rw-r--r--package/libiconv/patches/patch-srclib_stdio_in_h23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/libiconv/patches/patch-srclib_stdio_in_h b/package/libiconv/patches/patch-srclib_stdio_in_h
new file mode 100644
index 000000000..79dd2e4c7
--- /dev/null
+++ b/package/libiconv/patches/patch-srclib_stdio_in_h
@@ -0,0 +1,23 @@
+--- libiconv-1.14.orig/srclib/stdio.in.h 2011-08-07 08:42:06.000000000 -0500
++++ libiconv-1.14/srclib/stdio.in.h 2015-07-11 04:55:49.187959362 -0500
+@@ -685,18 +685,10 @@ _GL_WARN_ON_USE (getline, "getline is un
+ # undef gets
+ # define gets rpl_gets
+ # endif
+-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
+-_GL_CXXALIAS_RPL (gets, char *, (char *s));
+-# else
+-_GL_CXXALIAS_SYS (gets, char *, (char *s));
+-# 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. */
++#undef gets
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+
+
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@