diff options
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 0c361ba48..8d2b93830 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -29,7 +29,8 @@ LIBC=$(TOPDIR)libc.a CSRC =closedir.o dirfd.o getdents.o getdnnm.o gethstnm.o getpagesize.o \ isatty.o kernel_version.o mkfifo.o opendir.o readdir.o rewinddir.o \ seekdir.o setegid.o seteuid.o setpgrp.o statfix.o tcgetatr.o tell.o \ - telldir.o wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o + telldir.o wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o \ + libc_init.o COBJS=$(patsubst %.c,%.o, $(CSRC)) diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index c7d4343be..6b18c356d 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -44,13 +44,13 @@ _syscall0(pid_t, fork); //#define __NR_read 3 #ifdef L_read #include <unistd.h> -_syscall3(size_t, read, int, fd, char *, buf, size_t, count); +_syscall3(ssize_t, read, int, fd, __ptr_t, buf, size_t, count); #endif //#define __NR_write 4 #ifdef L_write #include <unistd.h> -_syscall3(size_t, write, int, fd, const char *, buf, size_t, count); +_syscall3(ssize_t, write, int, fd, const __ptr_t, buf, size_t, count); #endif //#define __NR_open 5 |