aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r--gold/fileread.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index 02f0571..aed1c1d 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -40,6 +40,15 @@
#include "descriptors.h"
#include "fileread.h"
+#ifndef HAVE_READV
+struct iovec { void* iov_base; size_t iov_len };
+ssize_t
+readv(int, const iovec*, int)
+{
+ gold_unreachable();
+}
+#endif
+
namespace gold
{