From 463e9584a9d624a32f1682fe66efda8db25c1708 Mon Sep 17 00:00:00 2001 From: Shawn Walker-Salas Date: Fri, 10 Feb 2017 07:16:58 -0800 Subject: [PATCH] Add missing MSG_PEEK definition for Solaris. Fixes #517 --- src/unix/solaris/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/solaris/mod.rs b/src/unix/solaris/mod.rs index 0c46ed2f655e9..6086acebd70c9 100644 --- a/src/unix/solaris/mod.rs +++ b/src/unix/solaris/mod.rs @@ -828,6 +828,8 @@ pub const SO_RCVTIMEO: ::c_int = 0x1006; pub const SO_ERROR: ::c_int = 0x1007; pub const SO_TYPE: ::c_int = 0x1008; +pub const MSG_PEEK: ::c_int = 0x2; + pub const IFF_LOOPBACK: ::c_int = 0x8; pub const SHUT_RD: ::c_int = 0;