summaryrefslogtreecommitdiff
path: root/src/poll.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.rs')
-rw-r--r--src/poll.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poll.rs b/src/poll.rs
index 15bafe2d..fbdd09de 100644
--- a/src/poll.rs
+++ b/src/poll.rs
@@ -17,7 +17,7 @@ use errno::Errno;
///
/// After a call to `poll` or `ppoll`, the events that occured can be
/// retrieved by calling [`revents()`](#method.revents) on the `PollFd`.
-#[repr(C)]
+#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct PollFd {
pollfd: libc::pollfd,