From: Ian Lance Taylor Date: Tue, 15 Jun 2010 16:54:26 +0000 (+0000) Subject: * fileread.cc: Only #include if HAVE_READV. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68ed838c0d5d6e20450e43264ce2e60981d085d0;p=binutils-gdb.git * fileread.cc: Only #include if HAVE_READV. (struct iovec): Correct !HAVE_READV definition. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index d333449348d..5c63a9ace71 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-06-15 Viktor Kutuzov + + * fileread.cc: Only #include if HAVE_READV. + (struct iovec): Correct !HAVE_READV definition. + 2010-06-10 Cary Coutant * object.cc (Sized_relobj::do_layout): Defer layout for reloc sections. diff --git a/gold/fileread.cc b/gold/fileread.cc index dc5539f2c22..10e1dec223b 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -27,7 +27,11 @@ #include #include #include + +#ifdef HAVE_READV #include +#endif + #include #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) {