[lxc-devel] [PATCH 00/17] Android/Bionic compatibility changes

Stéphane Graber stgraber at ubuntu.com
Fri Aug 16 15:13:46 UTC 2013


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





More information about the lxc-devel mailing list