summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/idutils/files/idutils-4.6-glibc-2.16.patch')
-rw-r--r--dev-util/idutils/files/idutils-4.6-glibc-2.16.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch b/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch
new file mode 100644
index 000000000000..c8659f071e26
--- /dev/null
+++ b/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch
@@ -0,0 +1,15 @@
+--- idutils-4.6_O/lib/stdio.in.h 2012-01-28 17:26:05.000000000 +0100
++++ idutils-4.6/lib/stdio.in.h 2013-06-13 18:38:29.787232848 +0200
+@@ -712,10 +712,12 @@
+ # undef gets
+ # endif
+ _GL_CXXALIASWARN (gets);
++# if HAVE_RAW_DECL_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. */
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++# endif
+ #endif
+
+