summaryrefslogtreecommitdiff
path: root/gold/gold.h
diff options
context:
space:
mode:
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 37528464364..14d4aeec987 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++.