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 <christian.brauner@ubuntu.com>
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