[lxc-devel] [lxc/master] tools: Include config.h in tool_utils.c

tenforward on Github lxc-bot at linuxcontainers.org
Fri Mar 9 08:55:17 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 450 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180309/3ef09a44/attachment.bin>
-------------- next part --------------
From 2e607d1c13dc842d3617fb82b35c6a8f208f3f0d Mon Sep 17 00:00:00 2001
From: KATOH Yasufumi <karma at jazz.email.ne.jp>
Date: Fri, 9 Mar 2018 17:53:09 +0900
Subject: [PATCH] tools: Include config.h in tool_utils.c

Since we do not include config.h, personality is not set. This is fix
it. See issue #2208.

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
---
 src/lxc/tools/tool_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/tools/tool_utils.c b/src/lxc/tools/tool_utils.c
index 7279b3d4c..e83560c2f 100644
--- a/src/lxc/tools/tool_utils.c
+++ b/src/lxc/tools/tool_utils.c
@@ -37,6 +37,8 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
+#include "config.h"
+
 #if HAVE_SYS_PERSONALITY_H
 #include <sys/personality.h>
 #endif


More information about the lxc-devel mailing list