From 23cd74133c81b80d335c701848b71d85a53402c6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 25 Nov 2009 18:01:02 +0100 Subject: 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. --- lib/pread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/pread.c') 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 -- cgit v1.2.1