summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/tcp_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/netinet/tcp_subr.c')
-rw-r--r--cpukit/libnetworking/netinet/tcp_subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_subr.c b/cpukit/libnetworking/netinet/tcp_subr.c
index a9cde3fdf0..9e7e57611d 100644
--- a/cpukit/libnetworking/netinet/tcp_subr.c
+++ b/cpukit/libnetworking/netinet/tcp_subr.c
@@ -399,7 +399,11 @@ tcp_close(tp)
t = tp->seg_next;
while (t != (struct tcpiphdr *)tp) {
t = (struct tcpiphdr *)t->ti_next;
+#if (defined(__GNUC__) && defined(__arm__))
+ LD32_UNALGN((struct tcpiphdr *)t->ti_prev,m);
+#else
m = REASS_MBUF((struct tcpiphdr *)t->ti_prev);
+#endif
remque(t->ti_prev);
m_freem(m);
}