From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 96A1613800E for ; Sat, 11 Aug 2012 15:35:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D86AE0160; Sat, 11 Aug 2012 15:35:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 44169E0160 for ; Sat, 11 Aug 2012 15:35:04 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A01C51B400C for ; Sat, 11 Aug 2012 15:35:03 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2078) id 520E22004C; Sat, 11 Aug 2012 15:35:02 +0000 (UTC) From: "Jeroen Roovers (jer)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jer@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-util/complexity/files: complexity-0.4-gets.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: complexity-0.4-gets.patch X-VCS-Directories: dev-util/complexity/files X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20120811153502.520E22004C@flycatcher.gentoo.org> Date: Sat, 11 Aug 2012 15:35:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: da2c20a3-105d-44bf-9f61-0e6b124e32a7 X-Archives-Hash: 2d7ba50c4ea1a71bf87e911866934452 jer 12/08/11 15:35:02 Added: complexity-0.4-gets.patch Log: Fix building against sys-libs/glibc-2.16 by Diego Elio Pettenò (bug #430826). (Portage version: 2.2.0_alpha120/cvs/Linux x86_64) Revision Changes Path 1.1 dev-util/complexity/files/complexity-0.4-gets.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/complexity/files/complexity-0.4-gets.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/complexity/files/complexity-0.4-gets.patch?rev=1.1&content-type=text/plain Index: complexity-0.4-gets.patch =================================================================== --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -720,8 +720,9 @@ #if @GNULIB_GETS@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# undef gets -# define gets rpl_gets +# ifdef gets +# 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)); @@ -734,6 +735,7 @@ 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 #endif