[rtems-libbsd commit] libc: Avoid conflict with Newlib __sinit()

Sebastian Huber sebh at rtems.org
Wed May 18 07:43:46 UTC 2022


Module:    rtems-libbsd
Branch:    master
Commit:    453ff00b5b72c17aa4856bcbb5b11c9b9940eb66
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=453ff00b5b72c17aa4856bcbb5b11c9b9940eb66

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed May 18 09:37:10 2022 +0200

libc: Avoid conflict with Newlib __sinit()

---

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

diff --git a/freebsd/lib/libc/stdio/local.h b/freebsd/lib/libc/stdio/local.h
index bed0b232..6661f8de 100644
--- a/freebsd/lib/libc/stdio/local.h
+++ b/freebsd/lib/libc/stdio/local.h
@@ -84,7 +84,9 @@ extern int	__sread(void *, char *, int);
 extern int	__swrite(void *, char const *, int);
 extern fpos_t	__sseek(void *, fpos_t, int);
 extern int	__sclose(void *);
+#ifndef __rtems__
 extern void	__sinit(void);
+#endif /* __rtems__ */
 extern void	_cleanup(void);
 extern void	__smakebuf(FILE *);
 extern int	__swhatbuf(FILE *, size_t *, int *);



More information about the vc mailing list