1 |
radhermit 12/11/02 03:36:52 |
2 |
|
3 |
Added: recutils-1.5-glibc-2.16.patch |
4 |
Log: |
5 |
Fix build with glibc-2.16 (bug #426922). |
6 |
|
7 |
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-db/recutils/files/recutils-1.5-glibc-2.16.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/recutils/files/recutils-1.5-glibc-2.16.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/recutils/files/recutils-1.5-glibc-2.16.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: recutils-1.5-glibc-2.16.patch |
16 |
=================================================================== |
17 |
--- recutils-1.5/lib/stdio.in.h |
18 |
+++ recutils-1.5/lib/stdio.in.h |
19 |
@@ -699,22 +699,11 @@ |
20 |
# endif |
21 |
#endif |
22 |
|
23 |
-#if @GNULIB_GETS@ |
24 |
-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ |
25 |
-# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
26 |
-# undef gets |
27 |
-# define gets rpl_gets |
28 |
-# endif |
29 |
-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1))); |
30 |
-_GL_CXXALIAS_RPL (gets, char *, (char *s)); |
31 |
-# else |
32 |
-_GL_CXXALIAS_SYS (gets, char *, (char *s)); |
33 |
-# undef gets |
34 |
-# endif |
35 |
-_GL_CXXALIASWARN (gets); |
36 |
/* It is very rare that the developer ever has full control of stdin, |
37 |
- so any use of gets warrants an unconditional warning. Assume it is |
38 |
- always declared, since it is required by C89. */ |
39 |
+ so any use of gets warrants an unconditional warning; besides, C11 |
40 |
+ removed it. */ |
41 |
+#undef gets |
42 |
+#if HAVE_RAW_DECL_GETS |
43 |
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
44 |
#endif |