hscript/meta.cc:99:28: error: '::strerror' has not been declared; did you mean 'stderr'?
...
[ 39%] Automatic MOC for target horizon-qt5
/horizon/hscript/meta.cc: In member function 'virtual bool Horizon::Keys::Hostname::execute() const':
/horizon/hscript/meta.cc:99:28: error: '::strerror' has not been declared; did you mean 'stderr'?
99 | ::strerror(errno));
| ^~~~~~~~
| stderr
[ 40%] Linking CXX executable hscript-fetch
/horizon/hscript/meta.cc: In member function 'virtual bool Horizon::Keys::Bootloader::execute() const':
/horizon/hscript/meta.cc:852:26: error: 'strerror' was not declared in this scope; did you mean 'stderr'?
852 | strerror(errno));
| ^~~~~~~~
| stderr
[ 40%] Built target hscript-fetch
...
Probably need something like this:
diff --git a/hscript/meta.cc b/hscript/meta.cc
index e3d05f2..9d4131b 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -11,6 +11,7 @@
*/
#include <assert.h>
+#include <cstring>
#include <fstream>
#include <regex>
#include <set>