[PATCH 01/01] Undefine stdout in case a BSP includes stdio.h

Kevin Kirspel kevin-kirspel at idexx.com
Fri Apr 7 20:10:55 UTC 2017


---
 freebsd/sys/dev/ofw/openfirm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/freebsd/sys/dev/ofw/openfirm.c b/freebsd/sys/dev/ofw/openfirm.c
index 3e86d8d..9b39502 100644
--- a/freebsd/sys/dev/ofw/openfirm.c
+++ b/freebsd/sys/dev/ofw/openfirm.c
@@ -82,6 +82,9 @@ static void OF_putchar(int c, void *arg);

 MALLOC_DEFINE(M_OFWPROP, "openfirm", "Open Firmware properties");

+#ifdef __rtems__
+#undef stdout
+#endif /* __rtems__ */
 static ihandle_t stdout;

 #ifndef __rtems__
--
1.9.1



More information about the devel mailing list