aboutsummaryrefslogtreecommitdiff
path: root/gold/pread.c
diff options
context:
space:
mode:
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;