summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2006-07-09 10:05:27 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2006-07-09 10:05:27 +0000
commitc9b005a9d2ed95bb1ab16fbc0c823c12a5c58b26 (patch)
tree38738aceaf0b1d08e1e41cd0059a1b8ddac79409 /cpukit/libnetworking
parentSync from freebsd6.1 (diff)
downloadrtems-c9b005a9d2ed95bb1ab16fbc0c823c12a5c58b26.tar.bz2
applied patches for PR1117/1118/1119/1120
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/netinet/tcp_var.h2
-rw-r--r--cpukit/libnetworking/sys/linker_set.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_var.h b/cpukit/libnetworking/netinet/tcp_var.h
index b7cd4ab655..4d5d9e6eaf 100644
--- a/cpukit/libnetworking/netinet/tcp_var.h
+++ b/cpukit/libnetworking/netinet/tcp_var.h
@@ -43,6 +43,7 @@
* Kernel variables for tcp.
*/
+#ifdef __BSD_VISIBLE
/*
* Tcp control block, one per tcp; fields:
*/
@@ -196,6 +197,7 @@ struct rmxp_tao {
#define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb)
#define intotw(ip) ((struct tcptw *)(ip)->inp_ppcb)
#define sototcpcb(so) (intotcpcb(sotoinpcb(so)))
+#endif /* __BSD_VISIBLE */
/*
* The smoothed round-trip time and estimated variance
diff --git a/cpukit/libnetworking/sys/linker_set.h b/cpukit/libnetworking/sys/linker_set.h
index c79fe87f0b..a2354ed397 100644
--- a/cpukit/libnetworking/sys/linker_set.h
+++ b/cpukit/libnetworking/sys/linker_set.h
@@ -42,7 +42,7 @@
#ifdef __GNUC__
#define __MAKE_SET(set, sym) \
static void const * const __set_##set##_sym_##sym \
- __attribute((section("set_" #set))) __unused = &sym
+ __attribute((section("set_" #set))) __used = &sym
#else /* !__GNUC__ */
#ifndef lint
#error "This file needs to be compiled by GCC or lint"