summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/socket/addr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs
index 26d6349e..77a69941 100644
--- a/src/sys/socket/addr.rs
+++ b/src/sys/socket/addr.rs
@@ -15,7 +15,7 @@ use std::os::unix::OsStrExt;
*/
#[repr(i32)]
-#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
+#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, FromPrimitive)]
pub enum AddressFamily {
Unix = consts::AF_UNIX,
Inet = consts::AF_INET,