[packages/shishi] - fix undeclared gets

baggins baggins at pld-linux.org
Wed Nov 21 14:17:35 CET 2012


commit 261e353857cd6b83450144b0fed2d22815da7737
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Nov 21 14:17:12 2012 +0100

    - fix undeclared gets

 shishi-glibc2.16.patch | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/shishi-glibc2.16.patch b/shishi-glibc2.16.patch
new file mode 100644
index 0000000..10eaf2f
--- /dev/null
+++ b/shishi-glibc2.16.patch
@@ -0,0 +1,34 @@
+>From 50eb0a03e7109e3a772bcb9fb6ff5af2649fd3e1 Mon Sep 17 00:00:00 2001
+From: Eray Aslan <address at hidden>
+Date: Tue, 9 Oct 2012 08:27:57 +0000
+Subject: [PATCH] Fix build failure with glibc-2.16.0. gets is removed in C11
+
+
+Signed-off-by: Eray Aslan <address at hidden>
+---
+ gl/stdio.in.h | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+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@
+-- 
+1.7.12
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/shishi.git/commitdiff/1b6f7d73394a2c2c0ce4c9337a2f8cea0b7a1d5e



More information about the pld-cvs-commit mailing list