Skip to content
Snippets Groups Projects
Commit 598469fc authored by bors's avatar bors
Browse files

Auto merge of #695 - ndusart:inaddrany, r=alexcrichton

define INADDR_* constants in unix platforms
parents 46863a35 76bf8292
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,11 @@ pub const IPPROTO_UDP: ::c_int = 17;
pub const IPPROTO_IP: ::c_int = 0;
pub const IPPROTO_IPV6: ::c_int = 41;
pub const INADDR_LOOPBACK: ::c_int = 2130706433;
pub const INADDR_ANY: ::c_int = 0;
pub const INADDR_BROADCAST: ::c_int = 4294967295;
pub const INADDR_NONE: ::c_int = 4294967295;
cfg_if! {
if #[cfg(dox)] {
// on dox builds don't pull in anything
......
......@@ -506,11 +506,6 @@ pub const SO_ERROR: ::c_int = 4105;
pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC;
pub const INADDR_LOOPBACK: ::c_int = 2130706433;
pub const INADDR_ANY: ::c_int = 0;
pub const INADDR_BROADCAST: ::c_int = 4294967295;
pub const INADDR_NONE: ::c_int = 4294967295;
pub const INET_ADDRSTRLEN: ::c_int = 16;
pub const IPPROTO_IP: ::c_int = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment