* fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
(struct iovec): Correct !HAVE_READV definition.
This commit is contained in:
parent
4e29fb547e
commit
68ed838c0d
|
@ -1,3 +1,8 @@
|
|||
2010-06-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
|
||||
|
||||
* fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
|
||||
(struct iovec): Correct !HAVE_READV definition.
|
||||
|
||||
2010-06-10 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* object.cc (Sized_relobj::do_layout): Defer layout for reloc sections.
|
||||
|
|
|
@ -27,7 +27,11 @@
|
|||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#ifdef HAVE_READV
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include "filenames.h"
|
||||
|
||||
|
@ -42,7 +46,7 @@
|
|||
#include "fileread.h"
|
||||
|
||||
#ifndef HAVE_READV
|
||||
struct iovec { void* iov_base; size_t iov_len };
|
||||
struct iovec { void* iov_base; size_t iov_len; };
|
||||
ssize_t
|
||||
readv(int, const iovec*, int)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue