-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches/adb: Fix compilation on GCC 14
Imports the patch from https://android-review.googlesource.com/c/platform/packages/modules/adb/+/2838578
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 959eb4a096fc51bf2814e3374cb12b41d32a045d Mon Sep 17 00:00:00 2001 | ||
From: Christopher Fore <[email protected]> | ||
Date: Mon, 20 Nov 2023 14:13:24 -0500 | ||
Subject: [PATCH] adb: IWYU, include <algorithm> for std::remove_if | ||
|
||
GCC 14 starts to no longer include <algorithm> by default, resulting in | ||
it needing to be explicitly declared. | ||
|
||
Test: Recompiled with GCC 14 and succeeded | ||
|
||
Change-Id: I1ff332284aa3b5dd38f882f9519269c9d370798c | ||
Signed-off-by: Christopher Fore <[email protected]> | ||
--- | ||
|
||
diff --git a/client/incremental_utils.cpp b/client/incremental_utils.cpp | ||
index 2f6958b..67f21a1 100644 | ||
--- a/client/incremental_utils.cpp | ||
+++ b/client/incremental_utils.cpp | ||
@@ -24,6 +24,7 @@ | ||
#include <ziparchive/zip_archive.h> | ||
#include <ziparchive/zip_writer.h> | ||
|
||
+#include <algorithm> | ||
#include <array> | ||
#include <cinttypes> | ||
#include <numeric> |