Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

jpf91
Copy link
Contributor

@jpf91 jpf91 commented Mar 6, 2016

X86 is the only architecture where epoll_event is actually packed. All other architectures define epoll_event as a normal struct:
http://code.metager.de/source/search?q=__EPOLL_PACKED&path=%2Fgnu%2Fglibc%2F&project=gnu
See also: http://bugzilla.gdcproject.org/show_bug.cgi?id=214

X86 is the only architecture where epoll_event is actually packed.
All other architectures define epoll_event as a normal struct.
See also: http://bugzilla.gdcproject.org/show_bug.cgi?id=214
@yebblies
Copy link
Contributor

yebblies commented Mar 6, 2016

We should really consider adding automatic struct layout tests at some point...

@yebblies
Copy link
Contributor

yebblies commented Mar 6, 2016

Auto-merge toggled on

yebblies added a commit that referenced this pull request Mar 6, 2016
Fix epoll_event for non-X86 architectures
@yebblies yebblies merged commit 4bfb1e9 into dlang:master Mar 6, 2016
@ibuclaw
Copy link
Member

ibuclaw commented Mar 6, 2016

We should also consider having a list of primary targets to support in druntime, rather than breaking builds for eg: PPC after someone has gone through the effort of porting all other parts.

@jpf91
Copy link
Contributor Author

jpf91 commented Mar 6, 2016

We should also consider having a list of primary targets to support in druntime, rather than breaking builds for eg: PPC after someone has gone through the effort of porting all other parts.

That's true, we should have a list somewhere. @redstar is maintaining the PPC port IIRC? also ping @klickverbot @kinke

@redstar
Copy link
Contributor

redstar commented Mar 6, 2016

See #1504

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants