[rtems-libbsd commit] stdio/local.h: Make Newlib config independent

Sebastian Huber sebh at rtems.org
Sun Jul 24 12:46:00 UTC 2022


Module:    rtems-libbsd
Branch:    6-freebsd-12
Commit:    376b24055cb901d8e43515339eddc7a242daf521
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=376b24055cb901d8e43515339eddc7a242daf521

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Jul 24 11:56:35 2022 +0200

stdio/local.h: Make Newlib config independent

---

 freebsd/lib/libc/stdio/local.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freebsd/lib/libc/stdio/local.h b/freebsd/lib/libc/stdio/local.h
index 6661f8de..5ec1d3f5 100644
--- a/freebsd/lib/libc/stdio/local.h
+++ b/freebsd/lib/libc/stdio/local.h
@@ -78,7 +78,7 @@ extern int	__srefill(FILE *);
  */
 extern int __srefill_r(struct _reent *,FILE *);
 
-#define __srefill(_x) __srefill_r(__getreent(), _x)
+#define __srefill(_x) __srefill_r(_REENT, _x)
 #endif /* __rtems__ */
 extern int	__sread(void *, char *, int);
 extern int	__swrite(void *, char const *, int);



More information about the vc mailing list