Skip to content

Commit 463e958

Browse files
Add missing MSG_PEEK definition for Solaris.
Fixes rust-lang#517
1 parent c9548a5 commit 463e958

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/solaris/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,8 @@ pub const SO_RCVTIMEO: ::c_int = 0x1006;
828828
pub const SO_ERROR: ::c_int = 0x1007;
829829
pub const SO_TYPE: ::c_int = 0x1008;
830830

831+
pub const MSG_PEEK: ::c_int = 0x2;
832+
831833
pub const IFF_LOOPBACK: ::c_int = 0x8;
832834

833835
pub const SHUT_RD: ::c_int = 0;

0 commit comments

Comments
 (0)