1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

pkg/esp32: avoid sys/uio.h inclusion outside of RIOT

The RIOT header `<sys/uio.h>` is not available when using the bundled ESP-IDF
outside of RIOT.

This patch ensures that `<sys/uio.h>` is only included when `RIOT_VERSION` is
defined.

Signed-off-by: Jongmin Kim <jmkim@debian.org>
This commit is contained in:
Jongmin Kim 2025-04-14 15:20:08 +09:00
parent 876bfa2e1a
commit a1cd48a45f
No known key found for this signature in database
GPG Key ID: 3450E95D9D0347A8

View File

@ -0,0 +1,31 @@
From 87cf66f13900f4609ac6e1fa4b4c8046232268bd Mon Sep 17 00:00:00 2001
From: Jongmin Kim <jmkim@debian.org>
Date: Mon, 14 Apr 2025 15:08:58 +0900
Subject: [PATCH 2/2] newlib: avoid sys/uio.h inclusion outside of RIOT
The RIOT header `<sys/uio.h>` is not available when using the bundled ESP-IDF
outside of RIOT.
This patch ensures that `<sys/uio.h>` is only included when `RIOT_VERSION` is
defined.
---
components/newlib/platform_include/sys/uio.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/components/newlib/platform_include/sys/uio.h b/components/newlib/platform_include/sys/uio.h
index 388fed3d..5a8652a7 100644
--- a/components/newlib/platform_include/sys/uio.h
+++ b/components/newlib/platform_include/sys/uio.h
@@ -6,7 +6,9 @@
#pragma once
+#ifdef RIOT_VERSION
#include_next <sys/uio.h>
+#endif /* RIOT_VERSION */
#include <stdint.h>
#include <sys/types.h>
--
2.49.0