vlc | branch: master | Marvin Scholz <[email protected]> | Tue Feb 23 19:25:47 
2016 +0100| [38452bb3da7b53b9894ad999fc733224ecc2b5f2] | committer: Felix Paul 
Kühne

macosx: services_discovery/bonjour: Allow compilation with SDKs < 10.11

Signed-off-by: Felix Paul Kühne <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38452bb3da7b53b9894ad999fc733224ecc2b5f2
---

 modules/services_discovery/bonjour.m |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/services_discovery/bonjour.m 
b/modules/services_discovery/bonjour.m
index 9f35a71..f9dd45c 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>
 {
+#ifdef MAC_OS_X_VERSION_10_11
     NSArray<NSNetServiceBrowser *> *_serviceBrowsers;
 
     NSMutableArray<NSNetService *> *_rawNetServices;
     NSMutableArray<NSNetService *> *_resolvedNetServices;
     NSMutableArray<NSValue *> *_inputItemsForNetServices;
+#else
+    NSArray *_serviceBrowsers;
+
+    NSMutableArray *_rawNetServices;
+    NSMutableArray *_resolvedNetServices;
+    NSMutableArray *_inputItemsForNetServices;
+#endif
 
     NSArray *_activeProtocols;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to