From dc7ee581321c4023f9ffe0c9f609071354ba1512 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 22 Dec 2023 20:25:10 -0700 Subject: [PATCH] Fix newlib H8/300 bits for C99/gcc-14 Similar to other patches. This adds a missing prototype and #include to some H8/300 specific code in newlib. Pushed to the trunk given Jeff J's pre-approval for these kinds of changes. --- newlib/libc/sys/h8300hms/sbrk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/sys/h8300hms/sbrk.c b/newlib/libc/sys/h8300hms/sbrk.c index 1456a67eb..a99ae2904 100644 --- a/newlib/libc/sys/h8300hms/sbrk.c +++ b/newlib/libc/sys/h8300hms/sbrk.c @@ -1,8 +1,10 @@ #include <_ansi.h> #include #include +#include register char *stack_ptr asm ("sp"); +extern int _write (int, char *, int); caddr_t _sbrk(incr)