$OpenBSD: patch-pdal_util_Utils_cpp,v 1.3 2018/04/11 07:47:09 landry Exp $

no libexecinfo/backtrace()

Index: pdal/util/Utils.cpp
--- pdal/util/Utils.cpp.orig
+++ pdal/util/Utils.cpp
@@ -44,16 +44,12 @@
 #include <cxxabi.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>  // WIFEXITED, WEXITSTATUS
-#ifndef _WIN32
-#include <execinfo.h> // backtrace
-#endif
 #include <dlfcn.h> // dladdr
 #endif
 
 #pragma warning(disable: 4127)  // conditional expression is constant
 
 #include <stdio.h>
-#include <iomanip>
 
 typedef std::vector<std::string> StringList;
 
@@ -604,7 +600,7 @@ double Utils::normalizeLongitude(double longitude)
 std::vector<std::string> Utils::backtrace()
 {
     std::vector<std::string> lines;
-#ifndef _WIN32
+#ifndef __OpenBSD__
     const int MAX_STACK_SIZE(100);
     void* buffer[MAX_STACK_SIZE];
     std::vector<std::string> prefixes;
