mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-util/android-tools: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/875575 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
587f16ea31
commit
5216d3cd0b
@ -55,8 +55,9 @@ src_prepare() {
|
||||
|
||||
cd "${S}/vendor/adb" || die
|
||||
eapply "${FILESDIR}/${P}-adb-0023-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch"
|
||||
eapply "${FILESDIR}/${P}-adb-gcc-13.patch"
|
||||
|
||||
cd "${S}"
|
||||
cd "${S}" || die
|
||||
rm -r patches || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
https://bugs.gentoo.org/875575
|
||||
https://android-review.googlesource.com/c/platform/packages/modules/adb/+/2399311
|
||||
|
||||
From ddffab649b12dce1502d63711836b58d007f6a28 Mon Sep 17 00:00:00 2001
|
||||
From: Heiko Becker <heirecka@exherbo.org>
|
||||
Date: Mon, 23 Jan 2023 23:09:52 +0100
|
||||
Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
|
||||
|
||||
Like other versions before, gcc 13 moved some includes around and as a
|
||||
result <cstdint> is no longer transitively included. Explicitly include
|
||||
it for uint{32,64}_t.
|
||||
|
||||
Test: local build
|
||||
Change-Id: I05a27726b05427c486fd01b013dba4d698abac97
|
||||
--- a/file_sync_protocol.h
|
||||
+++ b/file_sync_protocol.h
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
+#include <cstdint>
|
||||
+
|
||||
#define MKID(a, b, c, d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
|
||||
|
||||
#define ID_LSTAT_V1 MKID('S', 'T', 'A', 'T')
|
||||
Loading…
x
Reference in New Issue
Block a user