diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-02-24 02:45:01 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-02-24 02:53:06 +0000 |
commit | 8c8574acb85169447168bdf08d5718ba7cf2be85 (patch) | |
tree | 768b663b15f43d1266b695b2b4b337a2e7669f75 | |
parent | 4e696aff69090da046817a6339d01f4675728b95 (diff) | |
download | src-8c8574acb85169447168bdf08d5718ba7cf2be85.tar.gz src-8c8574acb85169447168bdf08d5718ba7cf2be85.zip |
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
-rw-r--r-- | usr.sbin/config/mkmakefile.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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> |