Blob Blame History Raw
From 6553cd110e061ca848e8b25241b694653ba0d571 Mon Sep 17 00:00:00 2001
From: nick black <dankamongmen@gmail.com>
Date: Thu, 18 Feb 2021 06:07:12 -0500
Subject: [PATCH] linux: always include signal.h

---
 doctest/parts/doctest_fwd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git doctest/parts/doctest_fwd.h doctest/parts/doctest_fwd.h
index 2b926a0..70c3cfb 100644
--- doctest/parts/doctest_fwd.h
+++ doctest/parts/doctest_fwd.h
@@ -357,11 +357,11 @@ DOCTEST_MSVC_SUPPRESS_WARNING(26812) // Prefer 'enum class' over 'enum'
 #ifndef DOCTEST_BREAK_INTO_DEBUGGER
 // should probably take a look at https://github.com/scottt/debugbreak
 #ifdef DOCTEST_PLATFORM_LINUX
+#include <signal.h>
 #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64))
 // Break at the location of the failing check if possible
 #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :) // NOLINT (hicpp-no-assembler)
 #else
-#include <signal.h>
 #define DOCTEST_BREAK_INTO_DEBUGGER() raise(SIGTRAP)
 #endif
 #elif defined(DOCTEST_PLATFORM_MAC)
-- 
2.30.1