]> git.ipfire.org Git - thirdparty/lxc.git/commit
Include all lxcmntent.h function declarations on Bionic 1063/head
authorPreetam D'Souza <preetamjdsouza@gmail.com>
Tue, 28 Jun 2016 03:12:12 +0000 (23:12 -0400)
committerPreetam D'Souza <preetamjdsouza@gmail.com>
Tue, 28 Jun 2016 16:52:06 +0000 (16:52 +0000)
commit702f5a1c640244829f2f5f20f6ab821e86a8858c
tree0e75a76af171532abc20a0acb2ef65b89fe54252
parent9aea6610d9926869b734ba4ad21bb8ceaafbdd9f
Include all lxcmntent.h function declarations on Bionic

Newer versions of Android (5.0+, aka API Level 21+) include mntent.h,
which declares setmntent and endmntent. This hits an edge
case with the preprocessor checks in lxcmntent.h because HAVE_SETMNTENT
and HAVE_ENDMNTENT are both defined (in Bionic's mntent.h), but conf.c
always includes lxcmntent.h on Bionic! As a result, we get compiler
warnings of implicit function declarations for setmntent endmntent.

This patch always includes setmntent/endmntent/hasmntopt function
declarations on Bionic, which gets rid of these warnings.

Signed-off-by: Preetam D'Souza <preetamjdsouza@gmail.com>
src/include/lxcmntent.h