diff options
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/netinet/tcp_var.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/linker_set.h | 2 |
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" |