Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/cssc/files: cssc-1.3.0-gets.patch
Date: Fri, 28 Sep 2012 16:01:33
Message-Id: 20120928160113.D4CE921601@flycatcher.gentoo.org
1 jer 12/09/28 16:01:13
2
3 Added: cssc-1.3.0-gets.patch
4 Log:
5 Fix building against sys-libs/glibc-2.16 (bug #436510).
6
7 (Portage version: 2.2.0_alpha134/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-vcs/cssc/files/cssc-1.3.0-gets.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cssc/files/cssc-1.3.0-gets.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cssc/files/cssc-1.3.0-gets.patch?rev=1.1&content-type=text/plain
14
15 Index: cssc-1.3.0-gets.patch
16 ===================================================================
17 --- a/gl/lib/stdio.in.h
18 +++ b/gl/lib/stdio.in.h
19 @@ -138,8 +138,10 @@
20 /* It is very rare that the developer ever has full control of stdin,
21 so any use of gets warrants an unconditional warning. Assume it is
22 always declared, since it is required by C89. */
23 +#ifdef gets
24 #undef gets
25 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
26 +#endif
27
28 #if @GNULIB_FOPEN@
29 # if @REPLACE_FOPEN@