1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 10:03:50 +01:00
RIOT/pkg/esp32_sdk/patches/0020-nvs_flash-extern-declaration-of-strlcpy.patch
2025-05-27 23:25:36 +02:00

26 lines
726 B
Diff

From b215127198549f5b1362479c72856fd9c4a75cdb Mon Sep 17 00:00:00 2001
From: Gunar Schorcht <gunar@schorcht.net>
Date: Sun, 2 Mar 2025 10:21:03 +0100
Subject: [PATCH 20/28] nvs_flash: extern declaration of strlcpy
---
components/nvs_flash/src/nvs_storage.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/components/nvs_flash/src/nvs_storage.cpp b/components/nvs_flash/src/nvs_storage.cpp
index e5db0caefe..4db36cec91 100644
--- a/components/nvs_flash/src/nvs_storage.cpp
+++ b/components/nvs_flash/src/nvs_storage.cpp
@@ -7,6 +7,8 @@
#if __has_include(<bsd/string.h>)
// for strlcpy
#include <bsd/string.h>
+#else
+extern size_t strlcpy(char *, const char *, size_t);
#endif
#ifndef ESP_PLATFORM
--
2.34.1