summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-07 06:19:02 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-10 10:38:44 +0200
commitcb682532cf9927619a3c8d168253187140835cc6 (patch)
treeefb8abc9206b17b12fd97a8bb7a02b53c00fe452 /cpukit/libnetworking/libc
parentnetwork: Remove man page installation (diff)
downloadrtems-cb682532cf9927619a3c8d168253187140835cc6.tar.bz2
network: Use kernel/user space header files
Add and use <machine/rtems-bsd-kernel-space.h> and <machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command line defines and defines scattered throught the code base. Simplify cpukit/libnetworking/Makefile.am. Update #3375.
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r--cpukit/libnetworking/libc/base64.c2
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c2
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c2
-rw-r--r--cpukit/libnetworking/libc/gethostbynis.c2
-rw-r--r--cpukit/libnetworking/libc/gethostnamadr.c2
-rw-r--r--cpukit/libnetworking/libc/getifaddrs.c2
-rw-r--r--cpukit/libnetworking/libc/getnameinfo.c2
-rw-r--r--cpukit/libnetworking/libc/getnetbydns.c2
-rw-r--r--cpukit/libnetworking/libc/getnetbyht.c2
-rw-r--r--cpukit/libnetworking/libc/getnetbynis.c2
-rw-r--r--cpukit/libnetworking/libc/getnetnamadr.c2
-rw-r--r--cpukit/libnetworking/libc/getproto.c2
-rw-r--r--cpukit/libnetworking/libc/getprotoent.c2
-rw-r--r--cpukit/libnetworking/libc/getprotoname.c2
-rw-r--r--cpukit/libnetworking/libc/getservbyname.c2
-rw-r--r--cpukit/libnetworking/libc/getservbyport.c2
-rw-r--r--cpukit/libnetworking/libc/getservent.c2
-rw-r--r--cpukit/libnetworking/libc/herror.c2
-rw-r--r--cpukit/libnetworking/libc/if_indextoname.c2
-rw-r--r--cpukit/libnetworking/libc/if_nameindex.c2
-rw-r--r--cpukit/libnetworking/libc/inet_addr.c2
-rw-r--r--cpukit/libnetworking/libc/inet_lnaof.c2
-rw-r--r--cpukit/libnetworking/libc/inet_makeaddr.c2
-rw-r--r--cpukit/libnetworking/libc/inet_netof.c2
-rw-r--r--cpukit/libnetworking/libc/inet_network.c2
-rw-r--r--cpukit/libnetworking/libc/inet_ntoa.c2
-rw-r--r--cpukit/libnetworking/libc/inet_ntop.c2
-rw-r--r--cpukit/libnetworking/libc/inet_pton.c2
-rw-r--r--cpukit/libnetworking/libc/linkaddr.c2
-rw-r--r--cpukit/libnetworking/libc/map_v4v6.c2
-rw-r--r--cpukit/libnetworking/libc/ns_name.c2
-rw-r--r--cpukit/libnetworking/libc/ns_netint.c2
-rw-r--r--cpukit/libnetworking/libc/ns_parse.c2
-rw-r--r--cpukit/libnetworking/libc/ns_print.c2
-rw-r--r--cpukit/libnetworking/libc/ns_ttl.c2
-rw-r--r--cpukit/libnetworking/libc/nsap_addr.c2
-rw-r--r--cpukit/libnetworking/libc/rcmd.c2
-rw-r--r--cpukit/libnetworking/libc/recv.c2
-rw-r--r--cpukit/libnetworking/libc/res_comp.c2
-rw-r--r--cpukit/libnetworking/libc/res_data.c2
-rw-r--r--cpukit/libnetworking/libc/res_debug.c2
-rw-r--r--cpukit/libnetworking/libc/res_init.c2
-rw-r--r--cpukit/libnetworking/libc/res_mkquery.c2
-rw-r--r--cpukit/libnetworking/libc/res_mkupdate.c2
-rw-r--r--cpukit/libnetworking/libc/res_query.c2
-rw-r--r--cpukit/libnetworking/libc/res_send.c2
-rw-r--r--cpukit/libnetworking/libc/res_stubs.c2
-rw-r--r--cpukit/libnetworking/libc/res_update.c2
-rw-r--r--cpukit/libnetworking/libc/send.c2
-rw-r--r--cpukit/libnetworking/libc/strsep.c2
50 files changed, 100 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/base64.c b/cpukit/libnetworking/libc/base64.c
index 070cc52231..ad2db725d3 100644
--- a/cpukit/libnetworking/libc/base64.c
+++ b/cpukit/libnetworking/libc/base64.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996, 1998 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 7300ef4564..3d967e9fe5 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* ++Copyright++ 1985, 1988, 1993
* -
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index 279514ea89..6d9fc1e0a5 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1985, 1988, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/gethostbynis.c b/cpukit/libnetworking/libc/gethostbynis.c
index 3a4195c187..d157f3c777 100644
--- a/cpukit/libnetworking/libc/gethostbynis.c
+++ b/cpukit/libnetworking/libc/gethostbynis.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1994, Garrett Wollman
*
diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c
index cf0a12d68f..df6a4a25d3 100644
--- a/cpukit/libnetworking/libc/gethostnamadr.c
+++ b/cpukit/libnetworking/libc/gethostnamadr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1994, Garrett Wollman
*
diff --git a/cpukit/libnetworking/libc/getifaddrs.c b/cpukit/libnetworking/libc/getifaddrs.c
index b5979cd372..354b3f2e9d 100644
--- a/cpukit/libnetworking/libc/getifaddrs.c
+++ b/cpukit/libnetworking/libc/getifaddrs.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/* $KAME: getifaddrs.c,v 1.9 2001/08/20 02:31:20 itojun Exp $ */
/*
diff --git a/cpukit/libnetworking/libc/getnameinfo.c b/cpukit/libnetworking/libc/getnameinfo.c
index 99a253f0ec..2955bf4aa1 100644
--- a/cpukit/libnetworking/libc/getnameinfo.c
+++ b/cpukit/libnetworking/libc/getnameinfo.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 2016 embedded brains GmbH. All rights reserved.
*
diff --git a/cpukit/libnetworking/libc/getnetbydns.c b/cpukit/libnetworking/libc/getnetbydns.c
index adbd0c9e4c..70f23124fc 100644
--- a/cpukit/libnetworking/libc/getnetbydns.c
+++ b/cpukit/libnetworking/libc/getnetbydns.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1985, 1988, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getnetbyht.c b/cpukit/libnetworking/libc/getnetbyht.c
index 4a388c7dd4..9e21767c32 100644
--- a/cpukit/libnetworking/libc/getnetbyht.c
+++ b/cpukit/libnetworking/libc/getnetbyht.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getnetbynis.c b/cpukit/libnetworking/libc/getnetbynis.c
index 14f09bca58..1aa426f102 100644
--- a/cpukit/libnetworking/libc/getnetbynis.c
+++ b/cpukit/libnetworking/libc/getnetbynis.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1994, Garrett Wollman
*
diff --git a/cpukit/libnetworking/libc/getnetnamadr.c b/cpukit/libnetworking/libc/getnetnamadr.c
index 7cb1b1bc08..0e11ba665d 100644
--- a/cpukit/libnetworking/libc/getnetnamadr.c
+++ b/cpukit/libnetworking/libc/getnetnamadr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1994, Garrett Wollman
*
diff --git a/cpukit/libnetworking/libc/getproto.c b/cpukit/libnetworking/libc/getproto.c
index 8b107331ab..6c6149aeff 100644
--- a/cpukit/libnetworking/libc/getproto.c
+++ b/cpukit/libnetworking/libc/getproto.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getprotoent.c b/cpukit/libnetworking/libc/getprotoent.c
index eefd7f593b..6b046eabe4 100644
--- a/cpukit/libnetworking/libc/getprotoent.c
+++ b/cpukit/libnetworking/libc/getprotoent.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getprotoname.c b/cpukit/libnetworking/libc/getprotoname.c
index 63c5ee5207..ee8b2f5443 100644
--- a/cpukit/libnetworking/libc/getprotoname.c
+++ b/cpukit/libnetworking/libc/getprotoname.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getservbyname.c b/cpukit/libnetworking/libc/getservbyname.c
index bf2e643385..80c9284175 100644
--- a/cpukit/libnetworking/libc/getservbyname.c
+++ b/cpukit/libnetworking/libc/getservbyname.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getservbyport.c b/cpukit/libnetworking/libc/getservbyport.c
index db3ce400b8..9bc0ab3c36 100644
--- a/cpukit/libnetworking/libc/getservbyport.c
+++ b/cpukit/libnetworking/libc/getservbyport.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/getservent.c b/cpukit/libnetworking/libc/getservent.c
index dc1fc9ca95..a82e3a82d4 100644
--- a/cpukit/libnetworking/libc/getservent.c
+++ b/cpukit/libnetworking/libc/getservent.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/herror.c b/cpukit/libnetworking/libc/herror.c
index bb1112f336..d6ebcb90c6 100644
--- a/cpukit/libnetworking/libc/herror.c
+++ b/cpukit/libnetworking/libc/herror.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/if_indextoname.c b/cpukit/libnetworking/libc/if_indextoname.c
index 32a499590e..467c2eb1e5 100644
--- a/cpukit/libnetworking/libc/if_indextoname.c
+++ b/cpukit/libnetworking/libc/if_indextoname.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/* $KAME: if_indextoname.c,v 1.7 2000/11/08 03:09:30 itojun Exp $ */
/*-
diff --git a/cpukit/libnetworking/libc/if_nameindex.c b/cpukit/libnetworking/libc/if_nameindex.c
index 8c1ebb8381..7c7777f543 100644
--- a/cpukit/libnetworking/libc/if_nameindex.c
+++ b/cpukit/libnetworking/libc/if_nameindex.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/* $KAME: if_nameindex.c,v 1.8 2000/11/24 08:20:01 itojun Exp $ */
/*-
diff --git a/cpukit/libnetworking/libc/inet_addr.c b/cpukit/libnetworking/libc/inet_addr.c
index af72d507a4..d014266ac2 100644
--- a/cpukit/libnetworking/libc/inet_addr.c
+++ b/cpukit/libnetworking/libc/inet_addr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1990, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_lnaof.c b/cpukit/libnetworking/libc/inet_lnaof.c
index 717daed64b..f9e182b869 100644
--- a/cpukit/libnetworking/libc/inet_lnaof.c
+++ b/cpukit/libnetworking/libc/inet_lnaof.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_makeaddr.c b/cpukit/libnetworking/libc/inet_makeaddr.c
index 0a14d191b1..887c611906 100644
--- a/cpukit/libnetworking/libc/inet_makeaddr.c
+++ b/cpukit/libnetworking/libc/inet_makeaddr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_netof.c b/cpukit/libnetworking/libc/inet_netof.c
index 65655124bf..8ff3407376 100644
--- a/cpukit/libnetworking/libc/inet_netof.c
+++ b/cpukit/libnetworking/libc/inet_netof.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_network.c b/cpukit/libnetworking/libc/inet_network.c
index 92c3af34ef..098867f906 100644
--- a/cpukit/libnetworking/libc/inet_network.c
+++ b/cpukit/libnetworking/libc/inet_network.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_ntoa.c b/cpukit/libnetworking/libc/inet_ntoa.c
index 80f662d929..c67678be27 100644
--- a/cpukit/libnetworking/libc/inet_ntoa.c
+++ b/cpukit/libnetworking/libc/inet_ntoa.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/inet_ntop.c b/cpukit/libnetworking/libc/inet_ntop.c
index 4ea2ee348c..d070ce8e18 100644
--- a/cpukit/libnetworking/libc/inet_ntop.c
+++ b/cpukit/libnetworking/libc/inet_ntop.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996-1999 by Internet Software Consortium.
diff --git a/cpukit/libnetworking/libc/inet_pton.c b/cpukit/libnetworking/libc/inet_pton.c
index 963c071353..3dc1966027 100644
--- a/cpukit/libnetworking/libc/inet_pton.c
+++ b/cpukit/libnetworking/libc/inet_pton.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/* Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
diff --git a/cpukit/libnetworking/libc/linkaddr.c b/cpukit/libnetworking/libc/linkaddr.c
index 728234d57e..c8d99c6fff 100644
--- a/cpukit/libnetworking/libc/linkaddr.c
+++ b/cpukit/libnetworking/libc/linkaddr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/map_v4v6.c b/cpukit/libnetworking/libc/map_v4v6.c
index 66287d4c3c..a0b1860fa3 100644
--- a/cpukit/libnetworking/libc/map_v4v6.c
+++ b/cpukit/libnetworking/libc/map_v4v6.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* ++Copyright++ 1985, 1988, 1993
* -
diff --git a/cpukit/libnetworking/libc/ns_name.c b/cpukit/libnetworking/libc/ns_name.c
index 2823f4e43d..0ecd2f4772 100644
--- a/cpukit/libnetworking/libc/ns_name.c
+++ b/cpukit/libnetworking/libc/ns_name.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/ns_netint.c b/cpukit/libnetworking/libc/ns_netint.c
index e620faf95c..dcdcacb435 100644
--- a/cpukit/libnetworking/libc/ns_netint.c
+++ b/cpukit/libnetworking/libc/ns_netint.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/ns_parse.c b/cpukit/libnetworking/libc/ns_parse.c
index f0ada7df4f..3b676732fb 100644
--- a/cpukit/libnetworking/libc/ns_parse.c
+++ b/cpukit/libnetworking/libc/ns_parse.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/ns_print.c b/cpukit/libnetworking/libc/ns_print.c
index d8133c97d9..1cb6e8fdfb 100644
--- a/cpukit/libnetworking/libc/ns_print.c
+++ b/cpukit/libnetworking/libc/ns_print.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996, 1998 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/ns_ttl.c b/cpukit/libnetworking/libc/ns_ttl.c
index f88890bfa9..a0c8baa2d2 100644
--- a/cpukit/libnetworking/libc/ns_ttl.c
+++ b/cpukit/libnetworking/libc/ns_ttl.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/nsap_addr.c b/cpukit/libnetworking/libc/nsap_addr.c
index d8effa2e70..29ecb05a31 100644
--- a/cpukit/libnetworking/libc/nsap_addr.c
+++ b/cpukit/libnetworking/libc/nsap_addr.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996, 1998 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index d21e019c82..dde1acfaee 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1983, 1993, 1994
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/recv.c b/cpukit/libnetworking/libc/recv.c
index fc4d5ac98c..9f33d5c881 100644
--- a/cpukit/libnetworking/libc/recv.c
+++ b/cpukit/libnetworking/libc/recv.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_comp.c b/cpukit/libnetworking/libc/res_comp.c
index a1381fb12b..cd4820114e 100644
--- a/cpukit/libnetworking/libc/res_comp.c
+++ b/cpukit/libnetworking/libc/res_comp.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_data.c b/cpukit/libnetworking/libc/res_data.c
index 241d049c7a..cd1a25ca83 100644
--- a/cpukit/libnetworking/libc/res_data.c
+++ b/cpukit/libnetworking/libc/res_data.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1995,1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c
index e6e7cbfa04..5ce5125fdf 100644
--- a/cpukit/libnetworking/libc/res_debug.c
+++ b/cpukit/libnetworking/libc/res_debug.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1985
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_init.c b/cpukit/libnetworking/libc/res_init.c
index 9af80e3727..a5f7fc9b4f 100644
--- a/cpukit/libnetworking/libc/res_init.c
+++ b/cpukit/libnetworking/libc/res_init.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1985, 1989, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_mkquery.c b/cpukit/libnetworking/libc/res_mkquery.c
index 832e2df740..e663d9821a 100644
--- a/cpukit/libnetworking/libc/res_mkquery.c
+++ b/cpukit/libnetworking/libc/res_mkquery.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_mkupdate.c b/cpukit/libnetworking/libc/res_mkupdate.c
index 402a9250ca..46e001c550 100644
--- a/cpukit/libnetworking/libc/res_mkupdate.c
+++ b/cpukit/libnetworking/libc/res_mkupdate.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/res_query.c b/cpukit/libnetworking/libc/res_query.c
index b742c30315..a2b3713e29 100644
--- a/cpukit/libnetworking/libc/res_query.c
+++ b/cpukit/libnetworking/libc/res_query.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c
index 316d3ad69c..bbe1642c6a 100644
--- a/cpukit/libnetworking/libc/res_send.c
+++ b/cpukit/libnetworking/libc/res_send.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1985, 1989, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_stubs.c b/cpukit/libnetworking/libc/res_stubs.c
index 3e8b4ee45b..0b0f26ca76 100644
--- a/cpukit/libnetworking/libc/res_stubs.c
+++ b/cpukit/libnetworking/libc/res_stubs.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (C) 1996 Peter Wemm <peter@freebsd.org>.
* All rights reserved.
diff --git a/cpukit/libnetworking/libc/res_update.c b/cpukit/libnetworking/libc/res_update.c
index 85c55694fe..0c02330e9c 100644
--- a/cpukit/libnetworking/libc/res_update.c
+++ b/cpukit/libnetworking/libc/res_update.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
diff --git a/cpukit/libnetworking/libc/send.c b/cpukit/libnetworking/libc/send.c
index e087e597f1..ce793e3307 100644
--- a/cpukit/libnetworking/libc/send.c
+++ b/cpukit/libnetworking/libc/send.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
diff --git a/cpukit/libnetworking/libc/strsep.c b/cpukit/libnetworking/libc/strsep.c
index 96e921097c..e7b52a9cbf 100644
--- a/cpukit/libnetworking/libc/strsep.c
+++ b/cpukit/libnetworking/libc/strsep.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-user-space.h>
+
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.