Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/epiphany/fstat.c')
-rw-r--r--libgloss/epiphany/fstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgloss/epiphany/fstat.c b/libgloss/epiphany/fstat.c
index 5a20b57f3..d126c2de8 100644
--- a/libgloss/epiphany/fstat.c
+++ b/libgloss/epiphany/fstat.c
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <syscall.h>
+#include "epiphany-syscalls.h"
/* ------------------------------------------------------------------------- */
@@ -44,6 +45,6 @@
int __attribute__ ((section ("libgloss_epiphany")))
_fstat (int fildes, struct stat *st)
{
- return asm_syscall (fildes, st, NULL, SYS_fstat);
+ return asm_syscall ((void *)fildes, st, NULL, SYS_fstat);
} /* _fstat () */