Fix mcore libgloss port for c99/gcc-14
Commit Message
[ So, there were more of these than I remembered :-) ]
Missing headers and prototypes, much like other ports.
Pushed to the trunk.
Jeff L.
commit 73ba2873383da9028360052563945f37830f833a
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Fri Dec 22 21:17:36 2023 -0700
Fix mcore libgloss port for c99/gcc-14
Missing headers and prototypes, much like other ports.
@@ -14,6 +14,8 @@
*/
#include "glue.h"
+#include <unistd.h>
+
/*
* kill -- go out via exit...
*/
@@ -14,6 +14,8 @@
*/
#include "glue.h"
+extern void print (char *ptr);
+
/*
* putnum -- print a 32 bit number in hex
*/
@@ -14,6 +14,9 @@
*/
#include "glue.h"
+extern int _kill (int, int);
+extern int _getpid (void);
+
int
_raise (int sig)
{
@@ -16,6 +16,8 @@
#include <sys/stat.h>
#include "glue.h"
+extern int _write (int, char *, int);
+
caddr_t
_sbrk (size_t incr)
{