etcd-cpp-apiv3: Fix build on musl + GCC14

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-05-20 21:05:39 -07:00
parent 35cf63e5f3
commit ddc8a6557f
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 44f4254fe96c43437400f94a8a2800175ddf3279 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 20 May 2024 21:00:48 -0700
Subject: [PATCH] include stdint.h for int64_t types
This is exposed when compiling for musl platforms where this
header is not included indirectly.
Upstream-Status: Submitted [https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/pull/270]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/Value.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Value.cpp b/src/Value.cpp
index cbda697..d6f2c9c 100644
--- a/src/Value.cpp
+++ b/src/Value.cpp
@@ -1,4 +1,5 @@
#include <iomanip>
+#include <cstdint>
#include "etcd/Value.hpp"
#include "etcd/v3/KeyValue.hpp"
--
2.45.1

View File

@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=eae7da6a2cd1788a5cf8a9f838cf6450"
SRC_URI = " \
git://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3.git;branch=master;protocol=https \
file://0001-cmake-fix-when-cross-compiling.patch \
file://0001-include-stdint.h-for-int64_t-types.patch \
"
SRCREV = "e31ac4d4caa55fa662e207150ba40f8151b7ad96"