| author | |
| committer | |
| log | be8e7da10383a8ab5ec7cc3a2fc07d18082730f1 |
| tree | 3f1527fc8424c55c3afa9f3f407e22f8a3c2ced0 |
| parent | 069986fdbf4c6fe99547a9cf9df3b44d4c030c43 |
Without this change, on some targets (e.g. aarch64-freebsd),
calling `cmsg.data()` with `Iterator.message.header` as the
argument would result in compilation failures like:
error: expected type '*align(8) c.posix_cmsghdr', found '*c.posix_cmsghdr'1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Io/net.zig+1-1| ... | ... | @@ -1528,7 +1528,7 @@ pub const cmsg = struct { |
| 1528 | 1528 | control: []align(cmsg_align) u8, |
| 1529 | 1529 | |
| 1530 | 1530 | pub const Message = struct { |
| 1531 | header: *cmsghdr, | |
| 1531 | header: *align(cmsg_align) cmsghdr, | |
| 1532 | 1532 | data: []align(cmsg_align) u8, |
| 1533 | 1533 | }; |
| 1534 | 1534 |