From 7c27a173ba2b22e059e8a2a92f070a3853218e09 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Wed, 10 Dec 2014 19:30:36 +0100 Subject: Fallout of Copy becoming opt-in. --- src/unistd.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/unistd.rs') diff --git a/src/unistd.rs b/src/unistd.rs index 1dc7e7d8..f24e883d 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -53,6 +53,7 @@ mod ffi { } } +#[deriving(Copy)] pub enum Fork { Parent(pid_t), Child @@ -101,7 +102,9 @@ pub fn fork() -> SysResult { type IovecR = Iovec; type IovecW = Iovec; +#[deriving(Copy)] pub struct ToRead; +#[deriving(Copy)] pub struct ToWrite; #[repr(C)] -- cgit v1.2.3