From: Stéphane Graber Date: Fri, 16 Aug 2013 13:35:06 +0000 (+0200) Subject: Define SOCK_CLOEXEC when missing X-Git-Tag: lxc-1.0.0.alpha1~1^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3da2f3bd755165c50c5c7fb55c2bfcb042fb3d8;p=thirdparty%2Flxc.git Define SOCK_CLOEXEC when missing Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 950fe9aa9..3e9fb5f68 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -54,6 +54,10 @@ #include #endif +#ifndef SOCK_CLOEXEC +# define SOCK_CLOEXEC 02000000 +#endif + lxc_log_define(lxc_attach, lxc); struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)