diff options
-rw-r--r-- | tools/depends/target/libshairplay/Makefile | 3 | ||||
-rw-r--r-- | tools/depends/target/libshairplay/xcode-llmvfix.patch | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tools/depends/target/libshairplay/Makefile b/tools/depends/target/libshairplay/Makefile index 991ec805dc..751bee4664 100644 --- a/tools/depends/target/libshairplay/Makefile +++ b/tools/depends/target/libshairplay/Makefile @@ -21,6 +21,9 @@ $(TARBALLS_LOCATION)/$(ARCHIVE): $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) rm -rf $(PLATFORM); mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) +ifeq ($(OS),ios) + cd $(PLATFORM); patch -p1 < ../xcode-llmvfix.patch +endif cd $(PLATFORM); $(AUTORECONF) -vif cd $(PLATFORM); $(CONFIGURE) diff --git a/tools/depends/target/libshairplay/xcode-llmvfix.patch b/tools/depends/target/libshairplay/xcode-llmvfix.patch new file mode 100644 index 0000000000..470c2d63da --- /dev/null +++ b/tools/depends/target/libshairplay/xcode-llmvfix.patch @@ -0,0 +1,18 @@ +--- a/src/lib/dnssd.c 2013-10-26 16:39:10.000000000 -0400 ++++ b/src/lib/dnssd.c 2013-10-26 16:38:32.000000000 -0400 +@@ -12,6 +12,13 @@ + * Lesser General Public License for more details. + */ + ++#ifndef __has_feature // Optional of course. ++ #define __has_feature(x) 0 // Compatibility with non-clang compilers. ++#endif ++#ifndef __has_extension ++ #define __has_extension __has_feature // Compatibility with pre-3.0 compilers. ++#endif ++ + #include <stdlib.h> + #include <string.h> + #include <stdio.h> + + |