[llvm-branch-commits] [llvm] release/20.x: [gtest] Fix building on OpenBSD/sparc64 (#145225) (PR #146155)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 27 14:04:51 PDT 2025
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/146155
Backport 68239b76f139e44d24f3949383e3fd4bf389e1c9
Requested by: @brad0
>From d13980a5da3b60db55ad33303a7e78b964b91ff6 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 27 Jun 2025 16:56:17 -0400
Subject: [PATCH] [gtest] Fix building on OpenBSD/sparc64 (#145225)
Cherry pick a patch from 1.15.0
Add missing include for raise(3)
https://github.com/google/googletest/commit/7f036c5563af7d0329f20e8bb42effb04629f0c0
(cherry picked from commit 68239b76f139e44d24f3949383e3fd4bf389e1c9)
---
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-branch-commits
mailing list