summaryrefslogtreecommitdiffstats
path: root/newlib/libc/unix/pread.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/pread.c')
-rw-r--r--newlib/libc/unix/pread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/unix/pread.c b/newlib/libc/unix/pread.c
index 72087542e..770c3fcf0 100644
--- a/newlib/libc/unix/pread.c
+++ b/newlib/libc/unix/pread.c
@@ -1,3 +1,4 @@
+#ifndef _NO_PREAD
/*
FUNCTION
<<pread>>---read a file from specified position
@@ -88,4 +89,5 @@ _DEFUN (pread, (fd, buf, n, off),
return _pread_r (_REENT, fd, buf, n, off);
}
-#endif
+#endif /* !_REENT_ONLY */
+#endif /* !_NO_PREAD */