diff options
| author | Jyun-Yan You <jyyou.tw@gmail.com> | 2014-09-02 10:47:33 +0800 |
|---|---|---|
| committer | Jyun-Yan You <jyyou.tw@gmail.com> | 2014-09-02 10:50:22 +0800 |
| commit | 97533294b44ac4adf9c27d3e5b8ea6685ac48683 (patch) | |
| tree | 8facbaaf2e8bde5ff81ad4c7578809cd2ecc479f /src/liblibc/lib.rs | |
| parent | 0bdac78da87605f6f7f6e7924872617226b19c85 (diff) | |
| download | rust-97533294b44ac4adf9c27d3e5b8ea6685ac48683.tar.gz rust-97533294b44ac4adf9c27d3e5b8ea6685ac48683.zip | |
Fix MIPS target
Add missing liblibc constants
Diffstat (limited to 'src/liblibc/lib.rs')
| -rw-r--r-- | src/liblibc/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 5713b4019a2..52e5de24931 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -2965,12 +2965,14 @@ pub mod consts { pub static AF_INET6: c_int = 10; pub static SOCK_STREAM: c_int = 2; pub static SOCK_DGRAM: c_int = 1; + pub static SOCK_RAW: c_int = 3; pub static IPPROTO_TCP: c_int = 6; pub static IPPROTO_IP: c_int = 0; pub static IPPROTO_IPV6: c_int = 41; pub static IP_MULTICAST_TTL: c_int = 33; pub static IP_MULTICAST_LOOP: c_int = 34; pub static IP_TTL: c_int = 2; + pub static IP_HDRINCL: c_int = 3; pub static IP_ADD_MEMBERSHIP: c_int = 35; pub static IP_DROP_MEMBERSHIP: c_int = 36; pub static IPV6_ADD_MEMBERSHIP: c_int = 20; @@ -3021,8 +3023,12 @@ pub mod consts { pub mod extra { use types::os::arch::c95::c_int; + pub static AF_PACKET : c_int = 17; + pub static IPPROTO_RAW : c_int = 255; + pub static O_RSYNC : c_int = 16400; pub static O_DSYNC : c_int = 16; + pub static O_NONBLOCK : c_int = 128; pub static O_SYNC : c_int = 16400; pub static PROT_GROWSDOWN : c_int = 0x01000000; |
