[rtems commit] network: Include <sys/uio.h> explicitly
Sebastian Huber
sebh at rtems.org
Wed Jun 7 13:27:55 UTC 2017
Module: rtems
Branch: master
Commit: d7613f7a18a95cbdcebc946a7794ef8badf4d3a6
Changeset: http://git.rtems.org/rtems/commit/?id=d7613f7a18a95cbdcebc946a7794ef8badf4d3a6
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 22 12:36:55 2017 +0200
network: Include <sys/uio.h> explicitly
Do not rely on indirect includes via other header files.
Update #2833.
---
cpukit/libnetworking/kern/kern_subr.c | 1 +
cpukit/libnetworking/kern/uipc_socket.c | 1 +
cpukit/libnetworking/nfs/bootp_subr.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/cpukit/libnetworking/kern/kern_subr.c b/cpukit/libnetworking/kern/kern_subr.c
index aeabf8d..9252d30 100644
--- a/cpukit/libnetworking/kern/kern_subr.c
+++ b/cpukit/libnetworking/kern/kern_subr.c
@@ -43,6 +43,7 @@
#include <sys/proc.h>
#include <sys/malloc.h>
#include <sys/queue.h>
+#include <sys/uio.h>
int
uiomove(void *cp, int n, struct uio *uio)
diff --git a/cpukit/libnetworking/kern/uipc_socket.c b/cpukit/libnetworking/kern/uipc_socket.c
index 1ea34a3..110f8ce 100644
--- a/cpukit/libnetworking/kern/uipc_socket.c
+++ b/cpukit/libnetworking/kern/uipc_socket.c
@@ -44,6 +44,7 @@
#include <sys/resourcevar.h>
#include <sys/signalvar.h>
#include <sys/sysctl.h>
+#include <sys/uio.h>
#include <limits.h>
#ifdef __rtems__
/*
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c
index 911e322..22d453f 100644
--- a/cpukit/libnetworking/nfs/bootp_subr.c
+++ b/cpukit/libnetworking/nfs/bootp_subr.c
@@ -52,6 +52,7 @@
#include <sys/reboot.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
+#include <sys/uio.h>
#include <net/if.h>
#include <net/route.h>
More information about the vc
mailing list