From c768719df4c8756d555d1822e84b4c0c1fce28ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 Jul 1999 21:19:03 +0000 Subject: [PATCH] * sysdeps/mach/hurd/pread.c (__pread): Include . Fix typo. * sysdeps/mach/hurd/pwrite.c (__pwrite): Include . --- ChangeLog | 3 ++- sysdeps/mach/hurd/pread.c | 3 ++- sysdeps/mach/hurd/pwrite.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05a6893..0f9af5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,8 @@ * sysdeps/mach/hurd/mmap.c (__mmap): Use correct arguments in __vm_allocate calls. -1999-07-20 Mark Kettenis + * sysdeps/mach/hurd/pread.c (__pread): Include . Fix typo. + * sysdeps/mach/hurd/pwrite.c (__pwrite): Include . * sysdeps/mach/hurd/sysd-stdio.c (__stdio_read): Call _hurd_fd_read with new OFFSET argument set to -1. diff --git a/sysdeps/mach/hurd/pread.c b/sysdeps/mach/hurd/pread.c index 6deb969..6c82846 100644 --- a/sysdeps/mach/hurd/pread.c +++ b/sysdeps/mach/hurd/pread.c @@ -20,9 +20,10 @@ #include #include +#include ssize_t -__pread (int fd, void *buf, size_t nbyte, off_t offset) +__pread (int fd, void *buf, size_t nbytes, off_t offset) { error_t err = HURD_FD_USE (fd, _hurd_fd_read (descriptor, buf, &nbytes, offset)); diff --git a/sysdeps/mach/hurd/pwrite.c b/sysdeps/mach/hurd/pwrite.c index 405c152..d307b47 100644 --- a/sysdeps/mach/hurd/pwrite.c +++ b/sysdeps/mach/hurd/pwrite.c @@ -20,6 +20,7 @@ #include #include +#include /* Write NBYTES of BUF to FD at given position OFFSET without changing the file position. Return the number written, or -1. */ -- 2.7.4