aboutsummaryrefslogtreecommitdiff
path: root/gold/pread.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-03-28 05:22:30 +0000
committerIan Lance Taylor <ian@airs.com>2009-03-28 05:22:30 +0000
commitfd03461a93f2e080e317da40dc4929ee437ffb76 (patch)
treeb39eddbb67236e3cb29f78f93ef59b9737c8fe78 /gold/pread.c
parent1b31f75d637045dd1fb0c8ee3dedf21ee6f147f5 (diff)
downloadgdb-fd03461a93f2e080e317da40dc4929ee437ffb76.zip
gdb-fd03461a93f2e080e317da40dc4929ee437ffb76.tar.gz
gdb-fd03461a93f2e080e317da40dc4929ee437ffb76.tar.bz2
* ffsll.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on ffsll. * gold.h (ffsll): Declare if HAVE_FFSLL is not defined. * ftruncate.c (ftruncate): Declare before definition. * mremap.c (mremap): Likewise. * pread.c (pread): Likewise. * configure, Makefile.in, config.in: Rebuild.
Diffstat (limited to 'gold/pread.c')
-rw-r--r--gold/pread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/pread.c b/gold/pread.c
index 1b0cf40..a7a7d9c 100644
--- a/gold/pread.c
+++ b/gold/pread.c
@@ -30,8 +30,10 @@
#include <sys/types.h>
#include <unistd.h>
+extern ssize_t pread (int, void *, size_t, off_t);
+
ssize_t
-pread(int fd, void* buf, size_t count, off_t offset)
+pread (int fd, void *buf, size_t count, off_t offset)
{
if (lseek(fd, offset, SEEK_SET) != offset)
return -1;