[3/4] um: Include sys/uio.h to have writev()

Message ID 20181030115812.346-3-richard@nod.at
State New
Headers show
Series
  • [1/4] um: Fix warning at kernel/time/clockevents.c:466
Related show

Commit Message

Richard Weinberger Oct. 30, 2018, 11:58 a.m.
sys/uio.h gives us writev(), otherwise the build might fail on
some systems.

Fixes: 49da7e64f33e ("High Performance UML Vector Network Driver")
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 arch/um/drivers/vector_user.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c
index 3d8cdbdb4e66..07dc8904510b 100644
--- a/arch/um/drivers/vector_user.c
+++ b/arch/um/drivers/vector_user.c
@@ -30,6 +30,7 @@ 
 #include <stdlib.h>
 #include <os.h>
 #include <um_malloc.h>
+#include <sys/uio.h>
 #include "vector_user.h"
 
 #define ID_GRE 0