1999-07-20 Mark Kettenis <kettenis@gnu.org>
authorroland <roland>
Tue, 20 Jul 1999 21:18:36 +0000 (21:18 +0000)
committerroland <roland>
Tue, 20 Jul 1999 21:18:36 +0000 (21:18 +0000)
* sysdeps/mach/hurd/pread.c (__pread): Include <hurd/fd.h>.  Fix typo.
* sysdeps/mach/hurd/pwrite.c (__pwrite): Include <hurd/fd.h>.

sysdeps/mach/hurd/pread.c
sysdeps/mach/hurd/pwrite.c

index 6deb969..6c82846 100644 (file)
 
 #include <errno.h>
 #include <unistd.h>
+#include <hurd/fd.h>
 
 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));
index 405c152..d307b47 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <errno.h>
 #include <unistd.h>
+#include <hurd/fd.h>
 
 /* Write NBYTES of BUF to FD at given position OFFSET without changing
    the file position.  Return the number written, or -1.  */