LXC recently regressed with regard to Android/Bionic buildability, the following commits try to address that.
With those changes, LXC now builds with an up to date NDK using android-9. Stéphane Graber (17): Add a local implementation of ifaddrs.h Replace all calls to rindex by strrchr Export the local getmntent_r implementation Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR Android now uses a sane clone() definition Add arm defines for __NR_signalfd(4) Add missing syscall.h include to utils.h Add missing sys/select.h include for fd_set Import local getline copy on bionic Include stdio.h in getline.h for FILE Use srand/rand instead of initstate/random Define SOCK_CLOEXEC when missing Add missing sys/socket.h include Don't define new_personality when building without personalities Allow building without confstr Add missing namespace.h include Fix lxc-user-nic to work on bionic configure.ac | 4 +- src/include/getline.h | 2 + src/include/ifaddrs.c | 597 ++++++++++++++++++++++++++++++++++++++++++++++++ src/include/ifaddrs.h | 54 +++++ src/include/lxcmntent.h | 1 + src/lxc/Makefile.am | 2 + src/lxc/attach.c | 16 +- src/lxc/bdev.c | 20 +- src/lxc/cgroup.c | 10 +- src/lxc/conf.c | 12 +- src/lxc/lxc.h | 1 + src/lxc/lxc_user_nic.c | 18 +- src/lxc/lxccontainer.c | 12 +- src/lxc/namespace.h | 3 - src/lxc/utils.h | 5 + 15 files changed, 729 insertions(+), 28 deletions(-) create mode 100644 src/include/ifaddrs.c create mode 100644 src/include/ifaddrs.h -- 1.8.3.2 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel