--- diagnostics-0.3.3.orig/diagnostics/extensions/stacktrace/posix_process.cpp
+++ diagnostics-0.3.3/diagnostics/extensions/stacktrace/posix_process.cpp
@@ -30,6 +30,7 @@
 #include <cerrno>
 #include <poll.h>
 #include <sys/wait.h>
+#include <unistd.h>
 
 DIAGNOSTICS_NAMESPACE_BEGIN;
 STACKTRACE_NAMESAPCE_BEGIN;
--- diagnostics-0.3.3.orig/configure.ac
+++ diagnostics-0.3.3/configure.ac
@@ -105,6 +105,8 @@ fi
 # unwinding doesn't work properly on ARM
 if test x$build = xarm-unknown-linux-gnueabi ; then
   enable_stacktrace=no
+elif test x$build = xarm-unknown-linux-gnueabihf ; then
+  enable_stacktrace=no
 fi
 AM_CONDITIONAL(STACKTRACE, test x$enable_stacktrace = xyes)
 
--- diagnostics-0.3.3.orig/diagnostics/extensions/stacktrace/posix.cpp
+++ diagnostics-0.3.3/diagnostics/extensions/stacktrace/posix.cpp
@@ -159,7 +159,8 @@ std::string
 POSIX::RealPath(const std::string &path)
 {
   char p[PATH_MAX];
-  ::realpath(path.c_str(), p);
+  if(!::realpath(path.c_str(), p))
+    throw Error(errno);
   std::string result(p);
   return result;
 }
