Re: [PATCH] um: writev needs <sys/uio.h>

From: Anton Ivanov
Date: Wed Jan 02 2019 - 11:47:53 EST




On 12/27/18 7:33 AM, Christoph Hellwig wrote:
vector_user.c doesn't compile without this for me.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
arch/um/drivers/vector_user.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c
index 3d8cdbdb4e66..41eefbcdc86f 100644
--- a/arch/um/drivers/vector_user.c
+++ b/arch/um/drivers/vector_user.c
@@ -25,6 +25,7 @@
#include <linux/if_packet.h>
#include <sys/socket.h>
#include <sys/wait.h>
+#include <sys/uio.h>
#include <linux/virtio_net.h>
#include <netdb.h>
#include <stdlib.h>

Acked-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>
--
Anton R. Ivanov

Cambridge Greys Limited, England and Wales company No 10273661
http://www.cambridgegreys.com/