]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix building init.lxc.static under bionic
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 3 Jun 2014 03:04:26 +0000 (22:04 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Jun 2014 14:11:09 +0000 (10:11 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/Makefile.am

index 588a3ab6aacd6fd54e62800d1c22ddb084f9d9df..2403bd7b8e36ce59c63672df920b92314cc36f9e 100644 (file)
@@ -234,6 +234,13 @@ lxc_usernsexec_SOURCES = lxc_usernsexec.c
 lxc_user_nic_SOURCES = lxc_user_nic.c network.c network.h
 
 init_lxc_static_SOURCES = lxc_init.c error.c log.c utils.c caps.c
+
+if !HAVE_GETLINE
+if HAVE_FGETLN
+init_lxc_static_SOURCES += ../include/getline.c
+endif
+endif
+
 init_lxc_static_LDFLAGS = -static
 init_lxc_static_LDADD = @CAP_LIBS@