From: Christophe de Dinechin <[email protected]>
Using errno requires <errno.h>. Some platforms/compilers
are stricter than others in this respect.
frame-log.cpp:27:96: error: use of undeclared identifier 'errno'
throw Error(std::string("Failed to open log file '") + log_name +
"': " + strerror(errno));
Signed-off-by: Christophe de Dinechin <[email protected]>
---
src/frame-log.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/frame-log.cpp b/src/frame-log.cpp
index 63a8ac0..cc993cd 100644
--- a/src/frame-log.cpp
+++ b/src/frame-log.cpp
@@ -12,6 +12,7 @@
#include <chrono>
#include <cstdarg>
#include <string.h>
+#include <errno.h>
namespace spice {
--
2.13.5 (Apple Git-94)
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel