Skip to content

struct addrinfo needs padding on Solaris/SPARC #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

dhduvall
Copy link

@dhduvall dhduvall commented Aug 6, 2017

64-bit Solaris/SPARC has a 4-byte pad before ai_addrlen for historical reasons (ai_addrlen used to be defined as a size_t, which is 4 bytes in ILP32 and 8 in LP64, but was converted to a 4-byte socklen_t in Solaris 10, which necessitated padding for (more or less) binary compatibility).

See rust-lang/rust#43649.

64-bit Solaris/SPARC has a 4-byte pad before ai_addrlen for historical
reasons (ai_addrlen used to be defined as a size_t, which is 4 bytes in
ILP32 and 8 in LP64, but was converted to a 4-byte socklen_t in Solaris
10, which necessitated padding for (more or less) binary compatibility).
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Aug 7, 2017

📌 Commit 1375070 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Aug 7, 2017

⌛ Testing commit 1375070 with merge 2a5b50b...

bors added a commit that referenced this pull request Aug 7, 2017
struct addrinfo needs padding on Solaris/SPARC

64-bit Solaris/SPARC has a 4-byte pad before `ai_addrlen` for historical reasons (`ai_addrlen` used to be defined as a `size_t`, which is 4 bytes in ILP32 and 8 in LP64, but was converted to a 4-byte `socklen_t` in Solaris 10, which necessitated padding for (more or less) binary compatibility).

See rust-lang/rust#43649.
@bors
Copy link
Contributor

bors commented Aug 7, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 2a5b50b to master...

@bors bors merged commit 1375070 into rust-lang:master Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants