The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8c8574acb85169447168bdf08d5718ba7cf2be85

commit 8c8574acb85169447168bdf08d5718ba7cf2be85
Author:     Mark Johnston <[email protected]>
AuthorDate: 2023-02-24 02:45:01 +0000
Commit:     Mark Johnston <[email protected]>
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:    [email protected]
---
 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>

Reply via email to