From 638a7ba075a9bf9dc1d7b58d526687f5d9b39c19 Mon Sep 17 00:00:00 2001 From: cognet Date: Fri, 9 Feb 2007 00:09:35 +0000 Subject: Use __NO_STRICT_ALIGNMENT, instead of special casing ia64 and sparc64. This fixes panics I got on arm, with struct ip aligned on 4 bytes. MFC After: 1 week --- sys/net/if_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index fbbf27d..a1bfc7b 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -290,7 +290,7 @@ if_simloop(ifp, m, af, hlen) /* Strip away media header */ if (hlen > 0) { m_adj(m, hlen); -#if defined(__ia64__) || defined(__sparc64__) +#ifndef __NO_STRICT_ALIGNMENT /* * Some archs do not like unaligned data, so * we move data down in the first mbuf. -- cgit v1.1