mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* 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.
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user