diff options
author | Theo Buehler <theorbuehler@gmail.com> | 2023-10-25 07:17:52 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2023-10-25 07:52:23 +0200 |
commit | 7f036c5563af7d0329f20e8bb42effb04629f0c0 (patch) | |
tree | c2859dab1b3bc3e5e1f165a33fb7121e7ce439bc | |
parent | 518387203b573f35477fa6872dd54620e70d2bdb (diff) | |
download | googletest-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.cc | 1 |
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> |