aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <theorbuehler@gmail.com>2023-10-25 07:17:52 +0200
committerTheo Buehler <tb@openbsd.org>2023-10-25 07:52:23 +0200
commit7f036c5563af7d0329f20e8bb42effb04629f0c0 (patch)
treec2859dab1b3bc3e5e1f165a33fb7121e7ce439bc
parent518387203b573f35477fa6872dd54620e70d2bdb (diff)
downloadgoogletest-7f036c5563af7d0329f20e8bb42effb04629f0c0.tar.gz
Add missing include for raise(3)
If SIGTRAP is defined, this file may end up using raise(3), which is defined in csignal, leading to a compilation failure on at least OpenBSD/sparc64 with gcc 8.
-rw-r--r--googletest/src/gtest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 99b22ed3..dcf4e269 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -43,6 +43,7 @@
#include <algorithm>
#include <chrono> // NOLINT
#include <cmath>
+#include <csignal>
#include <cstdint>
#include <cstdlib>
#include <cstring>