From: Stéphane Graber Date: Fri, 29 Jan 2016 12:35:47 +0000 (+0100) Subject: Add SOCK_CLOEXEC define for Android X-Git-Tag: lxc-2.0.0.beta2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c698360ffa991e52d504fef723c1f625aa9f6b2;p=thirdparty%2Flxc.git Add SOCK_CLOEXEC define for Android Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c index e9417d5a2..669f1c880 100644 --- a/src/lxc/lxc_ls.c +++ b/src/lxc/lxc_ls.c @@ -54,6 +54,10 @@ lxc_log_define(lxc_ls, lxc); #define LS_NESTING 5 #define LS_FILTER 6 +#ifndef SOCK_CLOEXEC +# define SOCK_CLOEXEC 02000000 +#endif + /* Store container info. */ struct ls { char *name;