aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <jeffreyalaw@gmail.com>2023-12-22 20:25:10 -0700
committerJeff Law <jeffreyalaw@gmail.com>2023-12-22 20:25:10 -0700
commitdc7ee581321c4023f9ffe0c9f609071354ba1512 (patch)
tree5b2647aba6584e661cd83f3eb1ba61cdca214eac
parent7382f54405aa81ca4420a58bb805ab21ef1e0b6b (diff)
downloadnewlib-dc7ee581321c4023f9ffe0c9f609071354ba1512.zip
newlib-dc7ee581321c4023f9ffe0c9f609071354ba1512.tar.gz
newlib-dc7ee581321c4023f9ffe0c9f609071354ba1512.tar.bz2
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.
-rw-r--r--newlib/libc/sys/h8300hms/sbrk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/h8300hms/sbrk.c b/newlib/libc/sys/h8300hms/sbrk.c
index 1456a67..a99ae29 100644
--- a/newlib/libc/sys/h8300hms/sbrk.c
+++ b/newlib/libc/sys/h8300hms/sbrk.c
@@ -1,8 +1,10 @@
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <stdlib.h>
register char *stack_ptr asm ("sp");
+extern int _write (int, char *, int);
caddr_t
_sbrk(incr)