X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8ad349bb6ed4a0be06e34c92be0d98b92e078db4..5d5c5d0d5b79ade9a973d55186ffda2638ba2b6e:/bsd/sys/socket.h diff --git a/bsd/sys/socket.h b/bsd/sys/socket.h index c23564ae7..637982089 100644 --- a/bsd/sys/socket.h +++ b/bsd/sys/socket.h @@ -1,6 +1,6 @@ /* - * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved. - * + * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. + * * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code @@ -493,24 +493,17 @@ struct msghdr { * grow when we're dealing with a 64-bit process. * WARNING - keep in sync with struct msghdr */ -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif struct user_msghdr { user_addr_t msg_name; /* optional address */ socklen_t msg_namelen; /* size of address */ - user_addr_t msg_iov; /* scatter/gather array */ + user_addr_t msg_iov __attribute((aligned(8))); /* scatter/gather array */ int msg_iovlen; /* # elements in msg_iov */ - user_addr_t msg_control; /* ancillary data, see below */ + user_addr_t msg_control __attribute((aligned(8))); /* ancillary data, see below */ socklen_t msg_controllen; /* ancillary data buffer len */ int msg_flags; /* flags on received message */ }; -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif - #endif // KERNEL #define MSG_OOB 0x1 /* process out-of-band data */