summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/async.c2
-rw-r--r--src/receive.c2
-rw-r--r--src/send.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/async.c b/src/async.c
index 4a2de10..d445f0a 100644
--- a/src/async.c
+++ b/src/async.c
@@ -33,6 +33,8 @@
#include "async.h"
#include "fastd.h"
+#include <sys/uio.h>
+
/** The packet header used on the async notification sockets */
typedef struct fastd_async_hdr {
diff --git a/src/receive.c b/src/receive.c
index d954102..7b00f2c 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -35,6 +35,8 @@
#include "peer.h"
#include "peer_hashtable.h"
+#include <sys/uio.h>
+
/** Handles the ancillary control messages of received packets */
static inline void handle_socket_control(struct msghdr *message, const fastd_socket_t *sock, fastd_peer_address_t *local_addr) {
diff --git a/src/send.c b/src/send.c
index 9de0b3b..be5c390 100644
--- a/src/send.c
+++ b/src/send.c
@@ -33,6 +33,8 @@
#include "fastd.h"
#include "peer.h"
+#include <sys/uio.h>
+
/** Adds packet info to ancillary control messages */
static inline void add_pktinfo(struct msghdr *msg, const fastd_peer_address_t *local_addr) {