Fix Android build because of getmntent_r

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2015-04-06 17:58:44 -04:00
parent 9fc7f8c015
commit 684f79a55a
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -67,6 +67,12 @@
#include <../include/ifaddrs.h> #include <../include/ifaddrs.h>
#endif #endif
#if IS_BIONIC
#include <../include/lxcmntent.h>
#else
#include <mntent.h>
#endif
#define MAX_BUFFER 4096 #define MAX_BUFFER 4096
#define NOT_SUPPORTED_ERROR "the requested function %s is not currently supported with unprivileged containers" #define NOT_SUPPORTED_ERROR "the requested function %s is not currently supported with unprivileged containers"
@ -84,7 +90,6 @@ return -1;
} }
#endif #endif
lxc_log_define(lxc_container, lxc); lxc_log_define(lxc_container, lxc);
static bool do_lxcapi_destroy(struct lxc_container *c); static bool do_lxcapi_destroy(struct lxc_container *c);