forked from pool/diffutils
f95516276c
Fix build with missing gets declaration (glibc 2.16) (forwarded request 128156 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/128169 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffutils?expand=0&rev=21
20 lines
708 B
Diff
20 lines
708 B
Diff
Index: diffutils-3.2/lib/stdio.in.h
|
|
===================================================================
|
|
--- diffutils-3.2.orig/lib/stdio.in.h
|
|
+++ diffutils-3.2/lib/stdio.in.h
|
|
@@ -693,12 +693,14 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s
|
|
_GL_CXXALIAS_SYS (gets, char *, (char *s));
|
|
# undef gets
|
|
# endif
|
|
+#if HAVE_RAW_DECL_GETS
|
|
_GL_CXXALIASWARN (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
|
|
|
|
|
|
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
|