git: 8c8574acb851 - main - config: Include errno.h in mkmakefile.cc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Feb 2023 02:53:37 UTC
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>