| author | |
| committer | |
| log | 388c02e8453fad9b74965f2596483aa7533ea903 |
| tree | 0b59e2958dc2aa63c941a006a9ade83688d9cdc3 |
| parent | 4a2861fb851ffb55a11819d695c246c12a9b77ee |
| signature | Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM |
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,7 +1528,7 @@ pub const cmsg = struct { |
| 1528 | control: []align(cmsg_align) u8, | 1528 | control: []align(cmsg_align) u8, |
| 1529 | 1529 | ||
| 1530 | pub const Message = struct { | 1530 | pub const Message = struct { |
| 1531 | header: *cmsghdr, | 1531 | header: *align(cmsg_align) cmsghdr, |
| 1532 | data: []align(cmsg_align) u8, | 1532 | data: []align(cmsg_align) u8, |
| 1533 | }; | 1533 | }; |
| 1534 | 1534 |