aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2013-10-26 16:50:34 -0400
committerS. Davilla <davilla@4pi.com>2013-10-26 16:50:34 -0400
commit2825404e59443d2d40a7945ac53b719b8f6146bd (patch)
treea6a8b661c8fe331effb7a75c3bc1cdbd2b2a87db
parent091416002aec78797399519ed3c28aa45e009f7b (diff)
darwin: libshairplay, fixed build on 10.7.x with Xcode 4.6
-rw-r--r--tools/depends/target/libshairplay/Makefile3
-rw-r--r--tools/depends/target/libshairplay/xcode-llmvfix.patch18
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>
+
+