diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-25 18:01:02 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-25 18:01:02 +0100 |
commit | 23cd74133c81b80d335c701848b71d85a53402c6 (patch) | |
tree | 34bbf11889f0c045dc32367bf3df77b47d1e2fe4 /lib/pread.c | |
parent | 8def010e77c2bace5391a1cda45e158d9e0a3f7d (diff) | |
download | gnulib-23cd74133c81b80d335c701848b71d85a53402c6.tar.gz |
pread: improvement and fix
* modules/pread (Depends-on): Depend on lseek, for portability to
e.g., mingw. Suggested by Eric Blake.
* lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
Diffstat (limited to 'lib/pread.c')
-rw-r--r-- | lib/pread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pread.c b/lib/pread.c index 632b91497c..7094ea7d08 100644 --- a/lib/pread.c +++ b/lib/pread.c @@ -23,6 +23,7 @@ #define __libc_lseek(f,o,w) lseek (f, o, w) #define __set_errno(Val) errno = (Val) +#define __libc_read(f,b,n) read (f, b, n) /* pread substitute for systems that the function, such as mingw32 and BeOS. */ /* The following is identical to the function from glibc's |