aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/unpcb.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-11-07 00:07:54 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-11-07 00:07:54 +0000
commit42800fb374800d720dd5ae9f8df62ebe59823ce3 (patch)
tree3344e64445db8200e4dace30e38a6ba56ece38a5 /sys/sys/unpcb.h
parentb8c923032f0e95c4d330ac96b756100c25ec8a8d (diff)
downloadsrc-42800fb374800d720dd5ae9f8df62ebe59823ce3.tar.gz
src-42800fb374800d720dd5ae9f8df62ebe59823ce3.zip
Fix the alignment of struct xunpcb on systems with >64-bit pointers.
Reviewed by: emaste Obtained from: CheriBSD MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22268
Notes
Notes: svn path=/head/; revision=354420
Diffstat (limited to 'sys/sys/unpcb.h')
-rw-r--r--sys/sys/unpcb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/unpcb.h b/sys/sys/unpcb.h
index 9583da646d81..6bd36e8e5801 100644
--- a/sys/sys/unpcb.h
+++ b/sys/sys/unpcb.h
@@ -156,7 +156,7 @@ struct xunpcb {
char xu_dummy2[256];
};
struct xsocket xu_socket;
-} __aligned(8);
+} __aligned(MAX(8, sizeof(void *)));
struct xunpgen {
ksize_t xug_len;