Skip to content

__align private field in in6_addr #55

New issue

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

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

Already on GitHub? # to your account

Closed
totakura opened this issue Nov 10, 2015 · 1 comment
Closed

__align private field in in6_addr #55

totakura opened this issue Nov 10, 2015 · 1 comment

Comments

@totakura
Copy link

Hi, is there any reason why __align is declared in in6_addr? As of now it is preventing in6_addr struct to be created.

@alexcrichton
Copy link
Member

Ah yeah this is unfortunately because we don't support unions in a great way right now, I'd recommend creating instances via mem::zeroed or mem::uninitialized and then initializing each member individually (as you would in C). Eventually I hope to remove these fields though!

danielverkamp pushed a commit to danielverkamp/libc that referenced this issue Apr 28, 2020
tgross35 pushed a commit to tgross35/rust-libc that referenced this issue Feb 22, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this issue Apr 2, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants