]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix Android build because of getmntent_r
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Apr 2015 21:58:44 +0000 (17:58 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Apr 2015 15:29:36 +0000 (11:29 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c

index 7683678927c76880036bb7c9f3e98f0a0d2caa41..4d6ade731fc29bb2c59a32c9da3bbafa449be8aa 100644 (file)
 #include <../include/ifaddrs.h>
 #endif
 
+#if IS_BIONIC
+#include <../include/lxcmntent.h>
+#else
+#include <mntent.h>
+#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);