diff options
Diffstat (limited to 'cpukit/libnetworking/net')
-rw-r--r-- | cpukit/libnetworking/net/if_loop.c | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/net/rtsock.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/libnetworking/net/if_loop.c b/cpukit/libnetworking/net/if_loop.c index 345730c729..6ff6bdfe4d 100644 --- a/cpukit/libnetworking/net/if_loop.c +++ b/cpukit/libnetworking/net/if_loop.c @@ -81,7 +81,7 @@ #include <netinet/if_ether.h> #include <netatalk/at.h> #include <netatalk/at_var.h> -#endif NETATALK +#endif /* NETATALK */ #include "bpfilter.h" @@ -205,7 +205,7 @@ looutput(ifp, m, dst, rt) ifq = &atintrq2; isr = NETISR_ATALK; break; -#endif NETATALK +#endif /* NETATALK */ default: printf("lo%d: can't handle af%d\n", ifp->if_unit, dst->sa_family); diff --git a/cpukit/libnetworking/net/rtsock.c b/cpukit/libnetworking/net/rtsock.c index 57e777906a..274f6fccff 100644 --- a/cpukit/libnetworking/net/rtsock.c +++ b/cpukit/libnetworking/net/rtsock.c @@ -67,8 +67,10 @@ static struct mbuf * static int rt_msg2 __P((int, struct rt_addrinfo *, caddr_t, struct walkarg *)); static int rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *)); +#if !defined(__rtems__) static int sysctl_dumpentry __P((struct radix_node *rn, void *vw)); static int sysctl_iflist __P((int af, struct walkarg *w)); +#endif static int route_output __P((struct mbuf *, struct socket *)); static int route_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *)); @@ -675,6 +677,7 @@ rt_newaddrmsg(cmd, ifa, error, rt) /* * This is used in dumping the kernel table via sysctl(). */ +#if !defined(__rtems__) int sysctl_dumpentry(rn, vw) struct radix_node *rn; @@ -707,7 +710,9 @@ sysctl_dumpentry(rn, vw) } return (error); } +#endif +#if !defined(__rtems__) int sysctl_iflist(af, w) int af; @@ -762,7 +767,9 @@ sysctl_iflist(af, w) } return (0); } +#endif +#if !defined(__rtems__) static int sysctl_rtsock SYSCTL_HANDLER_ARGS { @@ -807,6 +814,7 @@ sysctl_rtsock SYSCTL_HANDLER_ARGS } SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock,""); +#endif /* * Definitions of protocols supported in the ROUTE domain. |