Avoid duplicate code

This commit is contained in:
jD91mZM2
2018-09-18 08:06:21 +02:00
parent c2f4c1dbc9
commit 10a7944aef
3 changed files with 28 additions and 51 deletions
-2
View File
@@ -1,7 +1,5 @@
use platform::types::*;
// These constants also exist in platform. They need to match.
// Reason they are not just re-exported is cbindgen.
pub const SOCK_STREAM: c_int = 1;
pub const SOCK_DGRAM: c_int = 2;
pub const SOCK_NONBLOCK: c_int = 0o4000;