From a3da2f3bd755165c50c5c7fb55c2bfcb042fb3d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Fri, 16 Aug 2013 15:35:06 +0200 Subject: [PATCH] Define SOCK_CLOEXEC when missing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- src/lxc/attach.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5