summaryrefslogtreecommitdiff
path: root/package/m4/patches/patch-lib_stdio_in_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-29 16:06:00 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-29 16:06:00 +0100
commit8e8512391c668fc7074f812f15eabe8f176fb01e (patch)
treef9f0862dd6eb962fe3fc4803180b431843f6c5be /package/m4/patches/patch-lib_stdio_in_h
parentc491653a1f9574a42965025805d472c3d145f699 (diff)
parentae3d4616ed9c19a29d656193254657f93d612fa2 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/m4/patches/patch-lib_stdio_in_h')
-rw-r--r--package/m4/patches/patch-lib_stdio_in_h9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/m4/patches/patch-lib_stdio_in_h b/package/m4/patches/patch-lib_stdio_in_h
index 44644e4a7..1d6eefc41 100644
--- a/package/m4/patches/patch-lib_stdio_in_h
+++ b/package/m4/patches/patch-lib_stdio_in_h
@@ -1,10 +1,13 @@
--- m4-1.4.16.orig/lib/stdio.in.h 2011-03-01 17:39:29.000000000 +0100
-+++ m4-1.4.16/lib/stdio.in.h 2013-09-04 13:47:39.000000000 +0200
-@@ -162,7 +162,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not
++++ m4-1.4.16/lib/stdio.in.h 2013-10-29 10:45:30.000000000 +0100
+@@ -161,8 +161,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not
+ /* 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. */
++#if HAVE_RAW_DECL_GETS
#undef gets
--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
#if @GNULIB_FOPEN@
# if @REPLACE_FOPEN@