[vlc-commits] configure.ac: fix linking CFNetwork with SDKs older than 10.8

Felix Paul Kühne git at videolan.org
Thu Oct 10 14:49:10 CEST 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Oct 10 14:45:06 2013 +0200| [a14e373237e87694730775cddd572608e48e0173] | committer: Felix Paul Kühne

configure.ac: fix linking CFNetwork with SDKs older than 10.8

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

 configure.ac         |    2 +-
 src/darwin/netconf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 774a219..f864e0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,7 +158,7 @@ case "${host_os}" in
     VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
     VLC_ADD_LIBS([avcodec access_avio swscale postproc i420_rgb_mmx x264 x26410b],[-Wl,-read_only_relocs,suppress])
     VLC_ADD_CFLAGS([motion rotate],[-fconstant-cfstrings])
-    VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,CFNetwork])
+    VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,CoreServices])
 
     dnl Allow binaries created on Lion to run on earlier releases
     AC_EGREP_CPP(yes,
diff --git a/src/darwin/netconf.c b/src/darwin/netconf.c
index c36201c..802e0dc 100644
--- a/src/darwin/netconf.c
+++ b/src/darwin/netconf.c
@@ -29,7 +29,7 @@
 #include <vlc_network.h>
 
 #include <CoreFoundation/CoreFoundation.h>
-#include <CFNetwork/CFProxySupport.h>
+#include <CoreServices/CoreServices.h>
 
 /**
  * Determines the network proxy server to use (if any).



More information about the vlc-commits mailing list