From 40135332a81caa3960da0716b520b35bdf3290a8 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Sun, 23 Jul 2017 20:02:28 +0200
Subject: [PATCH] Fixing support for CYGWIN

---
 src/util/print_stack.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/util/print_stack.hpp b/src/util/print_stack.hpp
index 68a1130..bbc79c5 100644
--- a/src/util/print_stack.hpp
+++ b/src/util/print_stack.hpp
@@ -15,7 +15,9 @@
 #include <stdexcept>
 #include <string>
 #include <array>
+#ifndef __CYGWIN__ 
 #include <execinfo.h>
+#endif
 
 extern std::string program_name;
 
@@ -43,7 +45,7 @@ static inline std::string exec(const char* cmd)
  */
 static inline void print_stack()
 {
-#ifdef PRINT_STACKTRACE
+#if defined(PRINT_STACKTRACE) && !defined(__CYGWIN__)
 
 	void *trace[256];
 
-- 
GitLab