MFH: r514655
sysutils/grub2-bhyve: fix build on 13-CURRENT Build error: ./stdio.h:456:1: error: 'gets' undeclared here (not in a function); did you mean 'getw'? grub2 doesn't use gets() at all so it's just an error in the glib header file as a result of gets being excised from FreeBSD. Commenting out the _GL_WARN_ON_USE macro for that is fine. PR: 241168 Submitted by: Robert James Hernandez <rob@sarcasticadmin.com> Approved by: grehan (maintainer) Approved by: ports-secteam (joneum)
This commit is contained in:
parent
6c05a8f685
commit
fa7395982e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q4/; revision=514657
11
sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h
Normal file
11
sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- grub-core/gnulib/stdio.in.h.orig 2019-10-17 10:29:27 UTC
|
||||
+++ grub-core/gnulib/stdio.in.h
|
||||
@@ -141,7 +141,7 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX c
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
#undef gets
|
||||
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
+//_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
Loading…
Reference in New Issue
Block a user