contrib: libarchive: don't force a path with windows.h on other targets than Android
authorSteve Lhomme <robux4@videolabs.io>
Wed, 14 Jun 2017 12:02:00 +0000 (14:02 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 14 Jun 2017 15:52:54 +0000 (17:52 +0200)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
contrib/src/libarchive/rules.mak

index 0145e49..e2c309f 100644 (file)
@@ -17,7 +17,9 @@ $(TARBALLS)/libarchive-$(LIBARCHIVE_VERSION).tar.gz:
 libarchive: libarchive-$(LIBARCHIVE_VERSION).tar.gz .sum-libarchive
        $(UNPACK)
        $(APPLY) $(SRC)/libarchive/0001-Fix-build-failure-without-STATVFS.patch
+ifdef HAVE_ANDROID
        $(APPLY) $(SRC)/libarchive/android.patch
+endif
 ifdef HAVE_WINSTORE
        $(APPLY) $(SRC)/libarchive/no-windows-files.patch
 endif