From 4bb762f1b6697d181ef4cff025e576ceec1ae796 Mon Sep 17 00:00:00 2001
From: Ryan Volz <ryan.volz@gmail.com>
Date: Thu, 7 Jan 2021 19:13:38 -0500
Subject: runtime: lib: Put #include <cxxabi.h> behind HAVE_LIBINUWIND.

It's only needed when libunwind is used, and always including it fails
on Windows because the header doesn't exist for MSVC.

Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
---
 gnuradio-runtime/lib/terminate_handler.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'gnuradio-runtime/lib/terminate_handler.cc')

diff --git a/gnuradio-runtime/lib/terminate_handler.cc b/gnuradio-runtime/lib/terminate_handler.cc
index ed3b1d93b4..49468f4c64 100644
--- a/gnuradio-runtime/lib/terminate_handler.cc
+++ b/gnuradio-runtime/lib/terminate_handler.cc
@@ -14,10 +14,9 @@
 #include <regex>
 #include <stdexcept>
 
-#include <cxxabi.h>
-
 #ifdef HAVE_LIBUNWIND
 #define UNW_LOCAL_ONLY
+#include <cxxabi.h>
 #include <libunwind.h>
 #include <cstdio>
 #include <cstdlib>
-- 
cgit v1.2.3