diff options
Diffstat (limited to 'tools/bison/patches')
-rw-r--r-- | tools/bison/patches/100-fix-gets-removal.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bison/patches/100-fix-gets-removal.patch b/tools/bison/patches/100-fix-gets-removal.patch index f97e8a3985..534713f180 100644 --- a/tools/bison/patches/100-fix-gets-removal.patch +++ b/tools/bison/patches/100-fix-gets-removal.patch @@ -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 |