Blob Blame Raw
From: Maksym Sobolyev <sobomax@sippysoft.com>
Date: Mon, 13 Feb 2017 18:54:55 -0800
Subject: [PATCH] Add <sys/uio.h> where writev(2) is used.


diff --git a/modules/cpl_c/cpl_loader.c b/modules/cpl_c/cpl_loader.c
index ef9b87362..864a937be 100644
--- a/modules/cpl_c/cpl_loader.c
+++ b/modules/cpl_c/cpl_loader.c
@@ -33,7 +33,6 @@
 #include <unistd.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/uio.h>
 #include <errno.h>
 #include <string.h>
 #include <ctype.h>
diff --git a/modules/db_flatstore/flatstore.c b/modules/db_flatstore/flatstore.c
index 164a6e194..2239353a4 100644
--- a/modules/db_flatstore/flatstore.c
+++ b/modules/db_flatstore/flatstore.c
@@ -30,6 +30,7 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/uio.h>
 #include <unistd.h>
 #include "../../mem/mem.h"
 #include "../../dprint.h"
diff --git a/modules/event_flatstore/event_flatstore.c b/modules/event_flatstore/event_flatstore.c
index cff08274a..0ad2a2879 100644
--- a/modules/event_flatstore/event_flatstore.c
+++ b/modules/event_flatstore/event_flatstore.c
@@ -28,6 +28,7 @@
 #include <libgen.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/uio.h>
 
 #include "event_flatstore.h"
 #include "../../mem/mem.h"
diff --git a/modules/event_xmlrpc/xmlrpc_send.c b/modules/event_xmlrpc/xmlrpc_send.c
index ab1a2601e..19a3f861a 100644
--- a/modules/event_xmlrpc/xmlrpc_send.c
+++ b/modules/event_xmlrpc/xmlrpc_send.c
@@ -30,6 +30,7 @@
 #include "../../pt.h"
 #include "xmlrpc_send.h"
 #include "event_xmlrpc.h"
+#include <sys/uio.h>
 #include <fcntl.h>
 #include <unistd.h>
 
diff --git a/modules/proto_ws/proto_ws.c b/modules/proto_ws/proto_ws.c
index 7c041b953..313755a2a 100644
--- a/modules/proto_ws/proto_ws.c
+++ b/modules/proto_ws/proto_ws.c
@@ -27,6 +27,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <netinet/tcp.h>
+#include <sys/uio.h>
 #include <poll.h>
 
 #include "../../pt.h"
diff --git a/modules/proto_ws/ws_tcp.c b/modules/proto_ws/ws_tcp.c
index 8421d9fe5..7b179b529 100644
--- a/modules/proto_ws/ws_tcp.c
+++ b/modules/proto_ws/ws_tcp.c
@@ -29,6 +29,7 @@
 #include "../../globals.h"
 #include "../../tsend.h"
 #include "ws_tcp.h"
+#include <sys/uio.h>
 #include <unistd.h>
 
 /**************  READ related functions ***************/
diff --git a/modules/proto_wss/proto_wss.c b/modules/proto_wss/proto_wss.c
index 83c91b6bc..ed207b30a 100644
--- a/modules/proto_wss/proto_wss.c
+++ b/modules/proto_wss/proto_wss.c
@@ -27,6 +27,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <netinet/tcp.h>
+#include <sys/uio.h>
 #include <poll.h>
 
 #include "../../pt.h"