diff options
author | Theo Buehler <theorbuehler@gmail.com> | 2023-10-25 05:17:52 (GMT) |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2023-10-25 05:52:23 (GMT) |
commit | 7f036c5563af7d0329f20e8bb42effb04629f0c0 (patch) | |
tree | c2859dab1b3bc3e5e1f165a33fb7121e7ce439bc | |
parent | 518387203b573f35477fa6872dd54620e70d2bdb (diff) | |
download | googletest-7f036c5563af7d0329f20e8bb42effb04629f0c0.zip googletest-7f036c5563af7d0329f20e8bb42effb04629f0c0.tar.gz googletest-7f036c5563af7d0329f20e8bb42effb04629f0c0.tar.bz2 |
Add missing include for raise(3)refs/pull/4397/head
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 99b22ed..dcf4e26 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> |