diff options
author | Ben Woods <woodsb02@FreeBSD.org> | 2019-10-17 11:12:55 +0000 |
---|---|---|
committer | Ben Woods <woodsb02@FreeBSD.org> | 2019-10-17 11:12:55 +0000 |
commit | fa7395982eb4e349547dac68ca023377cfe7b514 (patch) | |
tree | fad499c937840c0a2c2848b1f48ac430f67f7e98 /sysutils | |
parent | 6c05a8f685eae62388eafb263bdceeb3b33dd932 (diff) | |
download | ports-fa7395982eb4e349547dac68ca023377cfe7b514.tar.gz ports-fa7395982eb4e349547dac68ca023377cfe7b514.zip |
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)
Notes
Notes:
svn path=/branches/2019Q4/; revision=514657
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h b/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h new file mode 100644 index 000000000000..23c572d64d01 --- /dev/null +++ b/sysutils/grub2-bhyve/files/patch-grub-core_gnulib_stdio.in.h @@ -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@ |