From 2faafb3815bed6a0b3885d7036d9f1d74c23b331 Mon Sep 17 00:00:00 2001
From: Ian Denhardt <ian@zenhack.net>
Date: Sun, 2 Oct 2016 15:02:28 -0400
Subject: [PATCH] Define CLONE_NEWCGROUP

Currently restricted to non-Android Linux. In theory this should work on
Android as well (since it's a function of the kernel ABI), but the
released version of the NDK doesn't export it, so putting it in
`notbsd/mod.rs` makes Travis very unhappy.
---
 src/unix/notbsd/linux/mod.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index daf5641f..46ed8071 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -248,6 +248,8 @@ pub const ABMON_10: ::nl_item = 0x20017;
 pub const ABMON_11: ::nl_item = 0x20018;
 pub const ABMON_12: ::nl_item = 0x20019;
 
+pub const CLONE_NEWCGROUP: ::c_int = 0x02000000;
+
 pub const MON_1: ::nl_item = 0x2001A;
 pub const MON_2: ::nl_item = 0x2001B;
 pub const MON_3: ::nl_item = 0x2001C;
-- 
GitLab