]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Makefile: correctly add ifaddrs to noinst_HEADERS
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 26 Aug 2018 15:24:27 +0000 (17:24 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Aug 2018 18:22:24 +0000 (20:22 +0200)
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>
src/lxc/Makefile.am

index 9499d51218254f8835340b07c09f8ff964b0bcca..1f8c5d98006318a7e9f22abfb1f374edadd86752 100644 (file)
@@ -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