Skip to content

Commit a1cd48a

Browse files
committed
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 <[email protected]>
1 parent 876bfa2 commit a1cd48a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 87cf66f13900f4609ac6e1fa4b4c8046232268bd Mon Sep 17 00:00:00 2001
2+
From: Jongmin Kim <[email protected]>
3+
Date: Mon, 14 Apr 2025 15:08:58 +0900
4+
Subject: [PATCH 2/2] newlib: avoid sys/uio.h inclusion outside of RIOT
5+
6+
The RIOT header `<sys/uio.h>` is not available when using the bundled ESP-IDF
7+
outside of RIOT.
8+
9+
This patch ensures that `<sys/uio.h>` is only included when `RIOT_VERSION` is
10+
defined.
11+
---
12+
components/newlib/platform_include/sys/uio.h | 2 ++
13+
1 file changed, 2 insertions(+)
14+
15+
diff --git a/components/newlib/platform_include/sys/uio.h b/components/newlib/platform_include/sys/uio.h
16+
index 388fed3d..5a8652a7 100644
17+
--- a/components/newlib/platform_include/sys/uio.h
18+
+++ b/components/newlib/platform_include/sys/uio.h
19+
@@ -6,7 +6,9 @@
20+
21+
#pragma once
22+
23+
+#ifdef RIOT_VERSION
24+
#include_next <sys/uio.h>
25+
+#endif /* RIOT_VERSION */
26+
27+
#include <stdint.h>
28+
#include <sys/types.h>
29+
--
30+
2.49.0
31+

0 commit comments

Comments
 (0)