diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-25 06:43:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-25 06:43:17 +0000 |
commit | 82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb (patch) | |
tree | 0c47d6a96f9fedfe8ed7862d913ff5e5cf9b9537 /gold/gold.h | |
parent | bae3688d8f8566ea43c712982cea95897ed359da (diff) | |
download | gdb-82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb.zip gdb-82dcae9de0f7ca290bba97b6dfb8449e1a2e27fb.tar.gz 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.h | 4 |
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++. |