trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Include sys/io.h for UIO_MAXIOV symbol.
@ 2017-06-20 22:43 Vinson Lee
  0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2017-06-20 22:43 UTC (permalink / raw)
  To: trinity

This patch fixes this build error.

  CC	net/proto-ipv4.o
net/proto-ipv4.c: In function ‘ip_setsockopt’:
net/proto-ipv4.c:231:49: error: ‘UIO_MAXIOV’ undeclared (first use in this function); did you mean ‘_IO_MAGIC’?
   so->optlen = rnd() % sizeof(unsigned long)*(2*UIO_MAXIOV+512);
                                                 ^~~~~~~~~~
                                                 _IO_MAGIC

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
 net/proto-ipv4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/proto-ipv4.c b/net/proto-ipv4.c
index b77364e02cad..9ffaa5e97a50 100644
--- a/net/proto-ipv4.c
+++ b/net/proto-ipv4.c
@@ -1,6 +1,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <sys/uio.h>
 #include <netinet/in.h>
 #include <netinet/udp.h>
 #include <stdlib.h>
-- 
2.13.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-20 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 22:43 [PATCH] Include sys/io.h for UIO_MAXIOV symbol Vinson Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).