summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2012-10-09 08:50:50 +0000
committerEray Aslan <eras@gentoo.org>2012-10-09 08:50:50 +0000
commit5a9b70aceae48a9487ee36a565c4f2c4f45c50ac (patch)
tree7a907afc3875b8aca1addf0aeb7d5611a1c445e9 /app-crypt/shishi/files
parentBump, updated homepage (diff)
downloadgentoo-2-5a9b70aceae48a9487ee36a565c4f2c4f45c50ac.tar.gz
gentoo-2-5a9b70aceae48a9487ee36a565c4f2c4f45c50ac.tar.bz2
gentoo-2-5a9b70aceae48a9487ee36a565c4f2c4f45c50ac.zip
Fix building with glibc-2.16.0 - bug #437660
(Portage version: 2.2.0_alpha136/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/shishi/files')
-rw-r--r--app-crypt/shishi/files/shishi_gets.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-crypt/shishi/files/shishi_gets.patch b/app-crypt/shishi/files/shishi_gets.patch
new file mode 100644
index 000000000000..12137204f455
--- /dev/null
+++ b/app-crypt/shishi/files/shishi_gets.patch
@@ -0,0 +1,20 @@
+diff --git a/gl/stdio.in.h b/gl/stdio.in.h
+index 06d9780..fa04a10 100644
+--- a/gl/stdio.in.h
++++ b/gl/stdio.in.h
+@@ -713,10 +713,13 @@ _GL_CXXALIAS_SYS (gets, char *, (char *s));
+ # 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. */
++ so any use of gets warrants an unconditional warning; besides C11
++ removed it. */
++#ifdef gets
++#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@