[klibc] [PATCH 11/16] packet.h needs a definition for struct iovec

Mike Waychison mikew at google.com
Mon Mar 1 23:46:25 PST 2010

struct iovec is now hidden behind __KERNEL__ in the kernel headers.  Let the
compiler know that struct iovec is a valid structure in packet.h.

Signed-off-by: Mike Waychison <mikew at google.com>
 usr/kinit/ipconfig/packet.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/usr/kinit/ipconfig/packet.h b/usr/kinit/ipconfig/packet.h
index 6e545b5..627d282 100644
--- a/usr/kinit/ipconfig/packet.h
+++ b/usr/kinit/ipconfig/packet.h
@@ -1,6 +1,8 @@
+struct iovec;
 int packet_open(void);
 void packet_close(void);
 int packet_send(struct netdev *dev, struct iovec *iov, int iov_len);

More information about the klibc mailing list