From: Matt Joyce <matthew.jo...@embedded-brains.de> Define _LIBC to access prototype for _times() function. This fixes a new warning in gcc 12.
Updates #4662. --- cpukit/libcsupport/src/__times.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index 629a7bc633..6fcf3f8501 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -38,9 +38,11 @@ #endif /* - * Needed to get the prototype for this newlib helper method + * Needed to get the prototype for this newlib helper method. Which define + * is required depends on the version of newlib. */ #define _COMPILING_NEWLIB +#define _LIBC #include <rtems.h> -- 2.31.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel