darwin: libshairplay, fixed build on 10.7.x with Xcode 4.6
authorS. Davilla <davilla@4pi.com>
Sat, 26 Oct 2013 20:50:34 +0000 (16:50 -0400)
committerS. Davilla <davilla@4pi.com>
Sat, 26 Oct 2013 20:50:34 +0000 (16:50 -0400)
tools/depends/target/libshairplay/Makefile
tools/depends/target/libshairplay/xcode-llmvfix.patch [new file with mode: 0644]

index 991ec80..751bee4 100644 (file)
@@ -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 (file)
index 0000000..470c2d6
--- /dev/null
@@ -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>
+
+