aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-25 06:43:17 +0000
committerIan Lance Taylor <iant@google.com>2007-09-25 06:43:17 +0000
commit82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb (patch)
tree0c47d6a96f9fedfe8ed7862d913ff5e5cf9b9537 /gold/gold.h
parentbae3688d8f8566ea43c712982cea95897ed359da (diff)
downloadfsf-binutils-gdb-82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb.zip
fsf-binutils-gdb-82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb.tar.gz
fsf-binutils-gdb-82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb.tar.bz2
Rework File_read interface. Get file size. Use pread when
available.
Diffstat (limited to 'gold/gold.h')
-rw-r--r--gold/gold.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.h b/gold/gold.h
index 3752846..14d4aee 100644
--- a/gold/gold.h
+++ b/gold/gold.h
@@ -98,6 +98,10 @@ struct hash<T*>
#endif
+#ifndef HAVE_PREAD
+extern "C" ssize_t pread(int, void*, size_t, off_t);
+#endif
+
namespace gold
{
// This is a hack to work around a problem with older versions of g++.