[llvm] [gtest] Fix building on OpenBSD/sparc64 (PR #145225)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 22 02:23:32 PDT 2025
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/145225
Cherry pick a patch from 1.15.0
Add missing include for raise(3)
https://github.com/google/googletest/commit/7f036c5563af7d0329f20e8bb42effb04629f0c0
>From 3deeb10015013b386c8fd17488c78aee71cf883c Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sun, 22 Jun 2025 05:19:54 -0400
Subject: [PATCH] [gtest] Fix building on OpenBSD/sparc64
Cherry pick a patch from 1.15.0
Add missing include for raise(3)
https://github.com/google/googletest/commit/7f036c5563af7d0329f20e8bb42effb04629f0c0
---
third-party/unittest/googletest/src/gtest.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/third-party/unittest/googletest/src/gtest.cc b/third-party/unittest/googletest/src/gtest.cc
index 30a5cc3f83a7e..37d380a789831 100644
--- a/third-party/unittest/googletest/src/gtest.cc
+++ b/third-party/unittest/googletest/src/gtest.cc
@@ -43,6 +43,7 @@
#include <algorithm>
#include <chrono> // NOLINT
#include <cmath>
+#include <csignal>
#include <cstdint>
#include <cstdlib>
#include <cstring>
More information about the llvm-commits
mailing list