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:
parent
876bfa2e1a
commit
a1cd48a45f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user