Skip to content

Commit

Permalink
Fix Android build because of getmntent_r
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed Apr 6, 2015
1 parent 9fc7f8c commit 684f79a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lxc/lxccontainer.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
#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"
Expand All @@ -84,7 +90,6 @@ return -1;
}
#endif


lxc_log_define(lxc_container, lxc);

static bool do_lxcapi_destroy(struct lxc_container *c);
Expand Down

0 comments on commit 684f79a

Please sign in to comment.