From: Matt Joyce <matthew.jo...@embedded-brains.de> Define _LIBC to ensure access to the function prototype. The purpose is to avoid a new warning in gcc 12.
Updates #4662. --- cpukit/libcsupport/src/__gettod.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c index 610f2c4d4a..e2a7ba6e64 100644 --- a/cpukit/libcsupport/src/__gettod.c +++ b/cpukit/libcsupport/src/__gettod.c @@ -39,9 +39,11 @@ #if defined(RTEMS_NEWLIB) /* - * Needed to get the prototype for the newlib helper method + * Needed to get the prototype for the newlib helper method. Which define + * is required depends on the version of newlib. */ #define _COMPILING_NEWLIB +#define _LIBC #include <sys/time.h> #include <reent.h> -- 2.31.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel