From: Christian Brauner Date: Sun, 26 Aug 2018 15:24:27 +0000 (+0200) Subject: Makefile: correctly add ifaddrs to noinst_HEADERS X-Git-Tag: lxc-3.1.0~127^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9978b4d34208a0a4fab5c5f49bc0aa1da78df8fd;p=thirdparty%2Flxc.git Makefile: correctly add ifaddrs to noinst_HEADERS Before this we only added ifaddrs.h to noinst_HEADERS when we were running on Android's bionic. That obviously doesn't make sense since it is possible that ifaddrs.h is not defined and we're also not running on Android's bionic. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 9499d5121..1f8c5d980 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -40,9 +40,12 @@ noinst_HEADERS = attach.h \ tools/arguments.h \ utils.h +if !HAVE_IFADDRS_H +noinst_HEADERS += ../include/ifaddrs.h +endif + if IS_BIONIC -noinst_HEADERS += ../include/ifaddrs.h \ - ../include/lxcmntent.h \ +noinst_HEADERS += ../include/lxcmntent.h \ ../include/openpty.h endif