diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-21 10:01:54 +0300 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-21 10:01:54 +0300 |
commit | 7a45daad9184e30c336f27b3e54b9c5bcc2d3f77 (patch) | |
tree | 218aa7ee58cba219aed39129f869b176f96223ec /libgloss/mn10300/sbrk.c | |
parent | 5fa3b84da08f8dc03ee55c58cfc63e9b4450285a (diff) |
Re: libgloss c99 fixes for mn10300-elf
Very similar to other patches in this space. Avoid implicit int types and add
missing #includes so that this code works with gcc-14.
Diffstat (limited to 'libgloss/mn10300/sbrk.c')
-rw-r--r-- | libgloss/mn10300/sbrk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgloss/mn10300/sbrk.c b/libgloss/mn10300/sbrk.c index 376fd3285..78945e77a 100644 --- a/libgloss/mn10300/sbrk.c +++ b/libgloss/mn10300/sbrk.c @@ -1,8 +1,11 @@ #include <_ansi.h> #include <sys/types.h> #include <sys/stat.h> +#include <stdlib.h> #include "trap.h" +extern int _write (int, char *, size_t); + caddr_t _sbrk (size_t incr) |