From cbeb4cc773f7fc37abf0276a004df2488762fad6 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 2 May 1997 22:19:13 +0000 Subject: [PATCH] Revert the reverting of the last change. Turns out the trouble on the m68k was a compiler bug (thanks Charles and Christos!) --- sys/sys/socket.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 0a01738a9cad..32cc538cabaa 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.23 1997/05/02 19:02:02 thorpej Exp $ */ +/* $NetBSD: socket.h,v 1.24 1997/05/02 22:19:13 thorpej Exp $ */ /* * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 @@ -131,14 +131,14 @@ struct linger { #define AF_MAX 30 /* - * Structure used by kernel to store most - * addresses. + * Structure used by kernel to store most addresses. + * Force this to have the host's natural alignment. */ struct sockaddr { u_char sa_len; /* total length */ u_char sa_family; /* address family */ char sa_data[14]; /* actually longer; address value */ -}; +} __attribute__((aligned(sizeof(long)))); /* * Structure used by kernel to pass protocol