* fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
authorIan Lance Taylor <ian@airs.com>
Tue, 15 Jun 2010 16:54:26 +0000 (16:54 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 15 Jun 2010 16:54:26 +0000 (16:54 +0000)
(struct iovec): Correct !HAVE_READV definition.

gold/ChangeLog
gold/fileread.cc

index d333449348d150755b3e2eba2a17aec95873655d..5c63a9ace7118715e7a2aa6b4b2a6a799dcd6508 100644 (file)
@@ -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.
index dc5539f2c22636299e8d7ca6ed92f495112df239..10e1dec223bfcaa67b4aa8f3dd76a84705cbce4d 100644 (file)
 #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)
 {
This page took 0.031276 seconds and 4 git commands to generate.