[PATCH 2/3] network: Include header files explicitly
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon May 22 12:16:01 UTC 2017
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>
--
1.8.4.5
More information about the devel
mailing list