diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-23 07:29:56 +0300 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2023-12-23 07:29:56 +0300 |
commit | 1df8f9f09b0999e04bc0bbd7170ac7dbfa278213 (patch) | |
tree | 1f557a935ceb5675ae2625f527170cbb2d88266e /libgloss/epiphany/_isatty.c | |
parent | 5e79655f380488eb99dd9cc39c30d7c2927fd998 (diff) |
Fix epiphany libgloss for c99/gcc-14
So in this case we mostly need to include an internal header
(epiphany-syscalls.h). In a few cases an explicit prototype is added. We've
also got a return with no value in a function with a non-void return type.
Finally the asm_syscall interface expects a pointer as its first argument. In
a few cases we've actually got an int (file descriptor) which we just cast to a
void *.
It's slightly more than Jeff J's pre-approval, but I think still reasonable.
Diffstat (limited to 'libgloss/epiphany/_isatty.c')
-rw-r--r-- | libgloss/epiphany/_isatty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgloss/epiphany/_isatty.c b/libgloss/epiphany/_isatty.c index cfb1bf6e4..f05aba3c3 100644 --- a/libgloss/epiphany/_isatty.c +++ b/libgloss/epiphany/_isatty.c @@ -18,6 +18,7 @@ #include <sys/stat.h> #include <errno.h> +#include "epiphany-syscalls.h" int _isatty (int fd) |