From 841a4df41383475d2a594e5228dfae32b56b33e8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 16 May 2016 10:24:20 -0700 Subject: [PATCH] Add back HW_NCPU Removed by accident in #285 --- src/unix/bsd/openbsdlike/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/openbsdlike/mod.rs b/src/unix/bsd/openbsdlike/mod.rs index 4c5fd4aec50d9..8bb15cffc08f1 100644 --- a/src/unix/bsd/openbsdlike/mod.rs +++ b/src/unix/bsd/openbsdlike/mod.rs @@ -441,6 +441,8 @@ pub const RTLD_GLOBAL: ::c_int = 0x100; pub const LOG_NFACILITIES: ::c_int = 24; +pub const HW_NCPU: ::c_int = 3; + #[link(name = "util")] extern { pub fn mincore(addr: *mut ::c_void, len: ::size_t,