From 684f79a55a6909ac3669eb6126796853f85b28eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 6 Apr 2015 17:58:44 -0400 Subject: [PATCH] Fix Android build because of getmntent_r MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/lxccontainer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index ee664f7e4..726229fd3 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -67,6 +67,12 @@ #include <../include/ifaddrs.h> #endif +#if IS_BIONIC +#include <../include/lxcmntent.h> +#else +#include +#endif + #define MAX_BUFFER 4096 #define NOT_SUPPORTED_ERROR "the requested function %s is not currently supported with unprivileged containers" @@ -84,7 +90,6 @@ return -1; } #endif - lxc_log_define(lxc_container, lxc); static bool do_lxcapi_destroy(struct lxc_container *c);