| @@ -1,18 +1,16 @@ | | | @@ -1,18 +1,16 @@ |
1 | $NetBSD: patch-lib_stdio.in.h,v 1.1 2013/07/19 12:13:36 ryoon Exp $ | | 1 | $NetBSD: patch-lib_stdio.in.h,v 1.2 2013/07/19 14:49:28 ryoon Exp $ |
2 | | | 2 | |
| | | 3 | glibc 2.16's /usr/include/stdio.h does not provide gets(3) anymore, |
| | | 4 | and this line causes breakage. |
3 | From: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch | | 5 | From: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch |
4 | Gnulib intentionally does not have a gets module, and now that C11 | | | |
5 | and glibc have dropped it, we should be more proactive about warning | | | |
6 | any user on a platform that still has a declaration of this dangerous | | | |
7 | interface. | | | |
8 | | | 6 | |
9 | --- lib/stdio.in.h.orig 2011-03-01 16:39:29.000000000 +0000 | | 7 | --- lib/stdio.in.h.orig 2011-03-01 16:39:29.000000000 +0000 |
10 | +++ lib/stdio.in.h | | 8 | +++ lib/stdio.in.h |
11 | @@ -162,7 +162,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not | | 9 | @@ -162,7 +162,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not |
12 | so any use of gets warrants an unconditional warning. Assume it is | | 10 | so any use of gets warrants an unconditional warning. Assume it is |
13 | always declared, since it is required by C89. */ | | 11 | always declared, since it is required by C89. */ |
14 | #undef gets | | 12 | #undef gets |
15 | -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | | 13 | -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
16 | | | 14 | |
17 | #if @GNULIB_FOPEN@ | | 15 | #if @GNULIB_FOPEN@ |
18 | # if @REPLACE_FOPEN@ | | 16 | # if @REPLACE_FOPEN@ |