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

Commit

Permalink
Merge pull request #1502 from jpf91/epoll-fix
Browse files Browse the repository at this point in the history
Fix epoll_event for non-X86 architectures
  • Loading branch information
yebblies committed Mar 6, 2016
2 parents ff4faa4 + c94547a commit 4bfb1e9
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/core/sys/linux/epoll.d
Expand Up @@ -45,11 +45,35 @@ enum
EPOLL_CTL_MOD = 3, // Change file descriptor epoll_event structure.
}

align(1) struct epoll_event
version (X86)
{
align(1):
uint events;
epoll_data_t data;
align(1) struct epoll_event
{
align(1):
uint events;
epoll_data_t data;
}
}
else version (X86_64)
{
align(1) struct epoll_event
{
align(1):
uint events;
epoll_data_t data;
}
}
else version (ARM)
{
struct epoll_event
{
uint events;
epoll_data_t data;
}
}
else
{
static assert(false, "Platform not supported");
}

union epoll_data_t
Expand Down

0 comments on commit 4bfb1e9

Please sign in to comment.