From c52458c38c105be3faded21e8fcda03da685201d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Mon, 10 Oct 2016 14:01:59 +0200 Subject: Make the AF_NETLINK constant available for Android --- src/unix/notbsd/linux/mod.rs | 2 -- src/unix/notbsd/mod.rs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 6d08b56262..ea820ea5c6 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -506,8 +506,6 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1; pub const NCCS: usize = 32; -pub const AF_NETLINK: ::c_int = 16; - pub const LOG_NFACILITIES: ::c_int = 24; pub const SEM_FAILED: *mut ::sem_t = 0 as *mut sem_t; diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 2558ca1496..a53211a2b8 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -435,6 +435,7 @@ pub const IFF_DYNAMIC: ::c_int = 0x8000; pub const AF_UNIX: ::c_int = 1; pub const AF_INET: ::c_int = 2; pub const AF_INET6: ::c_int = 10; +pub const AF_NETLINK: ::c_int = 16; pub const SOCK_RAW: ::c_int = 3; pub const IPPROTO_TCP: ::c_int = 6; pub const IPPROTO_IP: ::c_int = 0; -- cgit v1.2.1