sys/uio.h and errno.h required for networking?

Aaron J. Grier agrier at poofygoof.com
Tue Jun 9 22:22:30 UTC 2009


I needed the attached patch to get --enable-networking to compile on
RTEMS CVS HEAD.  perhaps my newlib is out of date?

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier at poofygoof.com
-------------- next part --------------
? cscope.out
Index: cpukit/libfs/src/nfsclient/src/sock_mbuf.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/nfsclient/src/sock_mbuf.c,v
retrieving revision 1.2
diff -u -r1.2 sock_mbuf.c
--- cpukit/libfs/src/nfsclient/src/sock_mbuf.c	4 Feb 2009 12:50:19 -0000	1.2
+++ cpukit/libfs/src/nfsclient/src/sock_mbuf.c	9 Jun 2009 22:19:54 -0000
@@ -98,6 +98,7 @@
 #include <sys/proc.h>
 #include <sys/fcntl.h>
 #include <sys/filio.h>
+#include <sys/uio.h>
 
 #include <net/if.h>
 #include <net/route.h>
Index: cpukit/libnetworking/kern/kern_subr.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/kern/kern_subr.c,v
retrieving revision 1.5
diff -u -r1.5 kern_subr.c
--- cpukit/libnetworking/kern/kern_subr.c	11 Feb 2009 13:21:10 -0000	1.5
+++ cpukit/libnetworking/kern/kern_subr.c	9 Jun 2009 22:19:55 -0000
@@ -43,6 +43,7 @@
 #include <sys/systm.h>
 #include <sys/proc.h>
 #include <sys/malloc.h>
+#include <sys/uio.h>
 #include <rtems/bsd/sys/queue.h>
 
 int
Index: cpukit/libnetworking/kern/kern_sysctl.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/kern/kern_sysctl.c,v
retrieving revision 1.16
diff -u -r1.16 kern_sysctl.c
--- cpukit/libnetworking/kern/kern_sysctl.c	19 Aug 2008 18:47:54 -0000	1.16
+++ cpukit/libnetworking/kern/kern_sysctl.c	9 Jun 2009 22:19:55 -0000
@@ -39,6 +39,8 @@
 #include "opt_compat.h"
 #include "opt_mac.h"
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
Index: cpukit/libnetworking/kern/uipc_socket.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/kern/uipc_socket.c,v
retrieving revision 1.10
diff -u -r1.10 uipc_socket.c
--- cpukit/libnetworking/kern/uipc_socket.c	1 Sep 2008 03:35:37 -0000	1.10
+++ cpukit/libnetworking/kern/uipc_socket.c	9 Jun 2009 22:19:55 -0000
@@ -30,6 +30,8 @@
  * $Id: uipc_socket.c,v 1.10 2008/09/01 03:35:37 ralf Exp $
  */
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <rtems/bsd/sys/queue.h>
 #include <sys/systm.h>
@@ -45,6 +47,7 @@
 #include <sys/resourcevar.h>
 #include <sys/signalvar.h>
 #include <sys/sysctl.h>
+#include <sys/uio.h>
 #include <limits.h>
 
 static int somaxconn = SOMAXCONN;
Index: cpukit/libnetworking/kern/uipc_socket2.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/kern/uipc_socket2.c,v
retrieving revision 1.9
diff -u -r1.9 uipc_socket2.c
--- cpukit/libnetworking/kern/uipc_socket2.c	1 Sep 2008 03:35:37 -0000	1.9
+++ cpukit/libnetworking/kern/uipc_socket2.c	9 Jun 2009 22:19:56 -0000
@@ -39,6 +39,8 @@
  * $Id: uipc_socket2.c,v 1.9 2008/09/01 03:35:37 ralf Exp $
  */
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
Index: cpukit/libnetworking/net/if_ppp.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/net/if_ppp.c,v
retrieving revision 1.20
diff -u -r1.20 if_ppp.c
--- cpukit/libnetworking/net/if_ppp.c	4 Feb 2009 15:47:09 -0000	1.20
+++ cpukit/libnetworking/net/if_ppp.c	9 Jun 2009 22:19:56 -0000
@@ -84,6 +84,7 @@
 
 #if NPPP > 0
 
+#include <errno.h>
 #include <termios.h>
 #include <rtems/termiostypes.h>
 #include <rtems/rtems_bsdnet.h>
Index: cpukit/libnetworking/net/ppp_tty.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/net/ppp_tty.c,v
retrieving revision 1.12
diff -u -r1.12 ppp_tty.c
--- cpukit/libnetworking/net/ppp_tty.c	1 Sep 2008 04:56:33 -0000	1.12
+++ cpukit/libnetworking/net/ppp_tty.c	9 Jun 2009 22:19:56 -0000
@@ -80,6 +80,8 @@
 
 #if NPPP > 0
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/proc.h>
Index: cpukit/libnetworking/net/route.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/net/route.c,v
retrieving revision 1.8
diff -u -r1.8 route.c
--- cpukit/libnetworking/net/route.c	1 Sep 2008 04:56:33 -0000	1.8
+++ cpukit/libnetworking/net/route.c	9 Jun 2009 22:19:57 -0000
@@ -32,6 +32,8 @@
 
 #include "opt_mrouting.h"
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <rtems/bsd/sys/queue.h>
 #include <sys/systm.h>
Index: cpukit/libnetworking/net/rtsock.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/net/rtsock.c,v
retrieving revision 1.11
diff -u -r1.11 rtsock.c
--- cpukit/libnetworking/net/rtsock.c	22 Dec 2008 12:45:53 -0000	1.11
+++ cpukit/libnetworking/net/rtsock.c	9 Jun 2009 22:19:57 -0000
@@ -33,6 +33,8 @@
 /*
  * $Id: rtsock.c,v 1.11 2008/12/22 12:45:53 ralf Exp $
  */
+
+#include <errno.h>
  
 #include <sys/param.h>
 #include <rtems/bsd/sys/queue.h>
Index: cpukit/libnetworking/netinet/ip_fw.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/netinet/ip_fw.c,v
retrieving revision 1.4
diff -u -r1.4 ip_fw.c
--- cpukit/libnetworking/netinet/ip_fw.c	10 May 2007 05:12:54 -0000	1.4
+++ cpukit/libnetworking/netinet/ip_fw.c	9 Jun 2009 22:19:57 -0000
@@ -23,6 +23,8 @@
 #include "opt_ipfw.h"
 #endif
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/malloc.h>
Index: cpukit/libnetworking/nfs/bootp_subr.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/nfs/bootp_subr.c,v
retrieving revision 1.28
diff -u -r1.28 bootp_subr.c
--- cpukit/libnetworking/nfs/bootp_subr.c	28 Apr 2009 11:12:03 -0000	1.28
+++ cpukit/libnetworking/nfs/bootp_subr.c	9 Jun 2009 22:19:58 -0000
@@ -42,6 +42,8 @@
  *	$NetBSD: krpc_subr.c,v 1.10 1995/08/08 20:43:43 gwr Exp $
  */
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <sys/ucred.h>
 #include <sys/systm.h>
@@ -54,6 +56,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>
Index: cpukit/libnetworking/rtems/rtems_showroute.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/rtems/rtems_showroute.c,v
retrieving revision 1.12
diff -u -r1.12 rtems_showroute.c
--- cpukit/libnetworking/rtems/rtems_showroute.c	1 Aug 2008 05:07:41 -0000	1.12
+++ cpukit/libnetworking/rtems/rtems_showroute.c	9 Jun 2009 22:19:58 -0000
@@ -6,6 +6,8 @@
 #include "config.h"
 #endif
 
+#include <errno.h>
+
 #include <sys/param.h>
 #include <rtems/bsd/sys/queue.h>
 #include <sys/systm.h>
Index: cpukit/libnetworking/rtems/rtems_syscall.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/rtems/rtems_syscall.c,v
retrieving revision 1.27
diff -u -r1.27 rtems_syscall.c
--- cpukit/libnetworking/rtems/rtems_syscall.c	23 Dec 2008 05:00:57 -0000	1.27
+++ cpukit/libnetworking/rtems/rtems_syscall.c	9 Jun 2009 22:19:58 -0000
@@ -28,6 +28,7 @@
 #include <sys/fcntl.h>
 #include <sys/filio.h>
 #include <sys/sysctl.h>
+#include <sys/uio.h>
 
 #include <net/if.h>
 #include <net/route.h>


More information about the users mailing list