Add missing include for std::unique_ptr

(cherry picked from commit 7bcdc2e24b50b75d649c12e28c4c5c9870d12a28)
This commit is contained in:
xinghe 2024-04-16 08:35:41 +00:00 committed by openeuler-sync-bot
parent ce75f0e4db
commit 7a7aa7092d
2 changed files with 35 additions and 1 deletions

View File

@ -6,7 +6,7 @@
Name: abseil-cpp
Version: 20220623.1
Release: 3
Release: 5
Summary: C++ Common Libraries
License: ASL 2.0
@ -15,6 +15,8 @@ Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-
Patch0: backport-Do-not-leak-maes-msse4.1-into-pkgconfig.patch
Patch1: abseil-cpp-20210324.2-sw.patch
Patch2: backport-Add-missing-include-for-std-unique_ptr.patch
%ifarch loongarch64
Patch100: 0001-add-loongarch-suopport-for-abseil-cpp.patch
%endif
@ -67,6 +69,12 @@ Development headers for %{name}
%{_libdir}/pkgconfig/*.pc
%changelog
* Tue Apr 16 2024 xinghe <xinghe2@h-partners.com> - 20220623.1-5
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:Add missing include for std::unique_ptr
* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 20220623.1-3
- add loongarch support for abseil-cpp

View File

@ -0,0 +1,26 @@
From 701185dbce17a2f49334027ca3cb5788a5d06c6d Mon Sep 17 00:00:00 2001
From: Abseil Team <absl-team@google.com>
Date: Fri, 22 Jul 2022 12:41:32 -0700
Subject: [PATCH] Add missing include for std::unique_ptr
PiperOrigin-RevId: 462681925
Change-Id: Ic5610cb4124b7f60a00817ca2f1d52674b27c168
Conflict: NA
Reference: https://github.com/abseil/abseil-cpp/commit/701185dbce17a2f49334027ca3cb5788a5d06c6d
---
absl/status/internal/status_internal.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/absl/status/internal/status_internal.h b/absl/status/internal/status_internal.h
index 19a4a7aaa09..873eb5c245d 100644
--- a/absl/status/internal/status_internal.h
+++ b/absl/status/internal/status_internal.h
@@ -14,6 +14,7 @@
#ifndef ABSL_STATUS_INTERNAL_STATUS_INTERNAL_H_
#define ABSL_STATUS_INTERNAL_STATUS_INTERNAL_H_
+#include <memory>
#include <string>
#include <utility>