Fix build with missing gets declaration (glibc 2.16) OBS-URL: https://build.opensuse.org/request/show/129067 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=65
19 lines
639 B
Diff
19 lines
639 B
Diff
Index: parted-2.4/lib/stdio.in.h
|
|
===================================================================
|
|
--- parted-2.4.orig/lib/stdio.in.h
|
|
+++ parted-2.4/lib/stdio.in.h
|
|
@@ -731,11 +731,13 @@ _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
|
|
|
|
|