]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
usernsexec: Add missing getline.h include
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 25 Nov 2013 23:22:05 +0000 (18:22 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 25 Nov 2013 23:22:05 +0000 (18:22 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_usernsexec.c

index afc3db95e23f65e2c84d26394a0808a4c89756ae..de6052d98ce748e778bba53c03af6074e13de319 100644 (file)
 #include <sched.h>
 #include <pwd.h>
 #include <grp.h>
+#include "config.h"
 #include "namespace.h"
 
+#ifndef HAVE_GETLINE
+#ifdef HAVE_FGETLN
+#include <../include/getline.h>
+#endif
+#endif
+
 int unshare(int flags);
 
 static void usage(const char *name)