tools/bison: update to 3.7.4
[openwrt/staging/dedeckeh.git] / tools / bison / patches / 100-fix-gets-removal.patch
index f97e8a398597f772e1cb9a41ab6dd48ee12b2776..534713f18097a57c9d4dce78d0b5ef49fa60a162 100644 (file)
@@ -1,6 +1,6 @@
 --- a/lib/stdio.in.h
 +++ b/lib/stdio.in.h
-@@ -816,14 +816,6 @@ _GL_WARN_ON_USE (getline, "getline is un
+@@ -835,14 +835,6 @@ _GL_WARN_ON_USE (getline, "getline is un
  # endif
  #endif
  
@@ -12,6 +12,6 @@
 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 -#endif
 -
- #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
- struct obstack;
- /* Grow an obstack with formatted output.  Return the number of
+ #if defined _WIN32 && !defined __CYGWIN__
+ # undef getw
+ # define getw _getw