[vlc-devel] [PATCH] macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11

epirat07 at gmail.com epirat07 at gmail.com
Tue Feb 23 19:14:32 CET 2016


From: Marvin Scholz <epirat07 at gmail.com>

---
 modules/services_discovery/bonjour.m | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules/services_discovery/bonjour.m b/modules/services_discovery/bonjour.m
index 9f35a71..e3f6d9a 100644
--- a/modules/services_discovery/bonjour.m
+++ b/modules/services_discovery/bonjour.m
@@ -56,11 +56,19 @@ NSString *const VLCBonjourProtocolServiceName = @"VLCBonjourProtocolServiceName"
 
 @interface VLCNetServiceDiscoveryController : NSObject <NSNetServiceBrowserDelegate, NSNetServiceDelegate>
 {
+#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100
     NSArray<NSNetServiceBrowser *> *_serviceBrowsers;
 
     NSMutableArray<NSNetService *> *_rawNetServices;
     NSMutableArray<NSNetService *> *_resolvedNetServices;
     NSMutableArray<NSValue *> *_inputItemsForNetServices;
+#else
+    NSArray *_serviceBrowsers;
+
+    NSMutableArray *_rawNetServices;
+    NSMutableArray *_resolvedNetServices;
+    NSMutableArray *_inputItemsForNetServices;
+#endif
 
     NSArray *_activeProtocols;
 }
@@ -241,4 +249,4 @@ static void Close(vlc_object_t *p_this)
     discoveryController = nil;
 
     free(p_sys);
-}
+}
\ No newline at end of file
-- 
2.2.1



More information about the vlc-devel mailing list