aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-09 23:20:44 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-09 23:20:44 +0000
commitd9a893b837890cddc71ea116e4d7e5b7bf9aadb8 (patch)
tree9c062c6e4c64b7d9c52415a8b93afecada7e957e /gold/fileread.cc
parentc0a628659598a06ce2b60c956763f075a2b64b30 (diff)
downloadgdb-d9a893b837890cddc71ea116e4d7e5b7bf9aadb8.zip
gdb-d9a893b837890cddc71ea116e4d7e5b7bf9aadb8.tar.gz
gdb-d9a893b837890cddc71ea116e4d7e5b7bf9aadb8.tar.bz2
* configure.ac: Check for readv function also.
* fileread.cc (readv): Define if not HAVE_READV. * fileread.h (File_read:: max_readv_entries): Set to 1 if readv does not exist. * config.in: Regenerate. * configure: Regenerate.
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
{