aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/pread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/pread.c')
-rw-r--r--sysdeps/posix/pread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/posix/pread.c b/sysdeps/posix/pread.c
index 300aabac65..22b8ca82bd 100644
--- a/sysdeps/posix/pread.c
+++ b/sysdeps/posix/pread.c
@@ -23,7 +23,7 @@
#include <unistd.h>
ssize_t
-pread (int fd, void *buf, size_t nbyte, off_t offset)
+__pread (int fd, void *buf, size_t nbyte, off_t offset)
{
/* Since we must not change the file pointer preserve the value so that
we can restore it later. */
@@ -54,3 +54,7 @@ pread (int fd, void *buf, size_t nbyte, off_t offset)
return result;
}
+
+#ifndef __pread
+weak_alias (__pread, pread)
+#endif