Date: Fri, 24 Feb 2023 02:53:37 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 8c8574acb851 - main - config: Include errno.h in mkmakefile.cc Message-ID: <202302240253.31O2rbJx046985@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8c8574acb85169447168bdf08d5718ba7cf2be85 commit 8c8574acb85169447168bdf08d5718ba7cf2be85 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-02-24 02:45:01 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-02-24 02:53:06 +0000 config: Include errno.h in mkmakefile.cc Commit da8884202940 ("config: error out on malformed env/hint lines") added a reference to EINVAL. In some configurations the bootstrap tools build fails for lack of errno definitions. Fixes: da8884202940 ("config: error out on malformed env/hint lines") Reported by: syzbot+b1a5d112a737d9a2be9b@syzkaller.appspotmail.com --- usr.sbin/config/mkmakefile.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/config/mkmakefile.cc b/usr.sbin/config/mkmakefile.cc index 2aaed82ce3ee..232933711ce5 100644 --- a/usr.sbin/config/mkmakefile.cc +++ b/usr.sbin/config/mkmakefile.cc @@ -44,6 +44,7 @@ static const char rcsid[] = */ #include <sys/param.h> +#include <cerrno> #include <ctype.h> #include <err.h> #include <stdarg.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302240253.31O2rbJx046985>