fd.c: Fix compilation on OS X.
authorAndre Noll <maan@systemlinux.org>
Tue, 16 Mar 2010 12:20:25 +0000 (13:20 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 16 Mar 2010 12:20:25 +0000 (13:20 +0100)
readv() needs sys/uio.h on OS X.

fd.c

diff --git a/fd.c b/fd.c
index 32d1107..dc3f80f 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -12,6 +12,7 @@
 #include <sys/mman.h>
 #include <fcntl.h>
 #include <sys/select.h>
 #include <sys/mman.h>
 #include <fcntl.h>
 #include <sys/select.h>
+#include <sys/uio.h>
 
 #include "para.h"
 #include "error.h"
 
 #include "para.h"
 #include "error.h"