summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/bison/bison/remove-gets.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-04 09:15:25 -0700
committerScott Garman <scott.a.garman@intel.com>2012-12-12 20:40:46 -0800
commitbc91a267d097c100480ea02ece7fb372167eaf7f (patch)
treeba4dfb4d5885fcab19b0a267287dfc6570439761 /meta/recipes-devtools/bison/bison/remove-gets.patch
parentb955f1a7bc716055c78ed575eccac6f611dc2395 (diff)
downloadopenembedded-core-bc91a267d097c100480ea02ece7fb372167eaf7f.tar.gz
openembedded-core-bc91a267d097c100480ea02ece7fb372167eaf7f.tar.bz2
openembedded-core-bc91a267d097c100480ea02ece7fb372167eaf7f.zip
bison: Fix for gets being removed from eglibc 2.16
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/bison/bison/remove-gets.patch')
-rw-r--r--meta/recipes-devtools/bison/bison/remove-gets.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/bison/bison/remove-gets.patch b/meta/recipes-devtools/bison/bison/remove-gets.patch
new file mode 100644
index 0000000000..2dfa00fcfa
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/remove-gets.patch
@@ -0,0 +1,20 @@
+gets has been removed from eglibc 2.16
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream-Status: Pending
+Index: bison-2.5/lib/stdio.in.h
+===================================================================
+--- bison-2.5.orig/lib/stdio.in.h 2012-07-04 09:09:48.336532195 -0700
++++ bison-2.5/lib/stdio.in.h 2012-07-04 09:10:22.868533884 -0700
+@@ -180,8 +180,10 @@
+ /* 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 defined gets
+ #undef gets
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@